• Resolved esarbege

    (@esarbege)


    My site is still in development and it is behind a construction wall so you can’t really see it.

    The site structure is a public domain with a members-only subdomain. I’ve set it up so that the LOGIN link on the public page goes to the log-in page on the members-only subdomain.

    Once you get to the log-in page, you are granted access to all of the menu items on the members-only subdomain. Rather than try to implement the [restricted] shortcode on every page, I’d like to restrict the menu so that only a logged in user can even see the menu items, except for the Home button which will take you back to the public site.

    Is this someing FEUP can do? Or, can you recommend a way to do this?

    Thanks for any help you can provide.

    • This topic was modified 8 years, 9 months ago by esarbege.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor etoilewebdesign

    (@etoilewebdesign)

    Hi Esarbege,

    For restricting the menu you can try to make use of our available public functions, which allow you to check if a visitor is logged in and display stuff conditionally based on that. We created a tutorial video that explains this and even includes an example of setting up a conditional menu, which you can watch here: https://www.youtube.com/watch?v=bKiJAjq7PhQ&index=9&list=PLEndQUuhlvSolfe-rIpI3eK_TmfeEDPeH.

    Thank you

    Thread Starter esarbege

    (@esarbege)

    I’m starting to figure this out but I have the misfortune of having chosen a theme for my site/subsite that only allows for 1 menu so I apparently cannot display logged in and logged out menu sets.

    As mentioned, once you go to the log-in page, the members only menu items show, which allows a non-member to view a members-only events calendar.

    I thought maybe I could put the log-in page on the public site which would only show the public menu and then would redirect to the member subsite…but the shortcodes don’t work without the installation of the FEUP on the main site. Would it work for that purpose if I reinstalled FEUP on the main domain?

    Thanks for any help you can provide.

    Plugin Contributor etoilewebdesign

    (@etoilewebdesign)

    Hi esarbege,

    I’m not quite sure what you’re asking. The public functions are made to go directly in the code, to alter/add to your current theme code. In our video, we give an example of how you can set up conditional menus. We cannot offer customized code specific to your theme, but, if you’re comfortable with coding, you should be able to set up the conditional menus regardless of how many menu areas your theme currently has.

    Thread Starter esarbege

    (@esarbege)

    I apparently wasn’t clear in my question(s). My apologies.

    I understand you cannot code specifically for a theme. As a workaround for NOT using the public function, I was wondering if an installation of FEUP on my main site would allow me to put the log-in page on the main site for access to the subsite/subdomain.

    I currently have the log-in on the subsite since that is the members only access. I guess the main question is, where should the FEUP installation be for a domain with a subdomain when the subdomain is the restricted access…domain or subdomain?

    Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Restrict Viewing Menu Items’ is closed to new replies.