Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Pages - General Discussions
Unanswered

How to hide navigation items before sign in?

(0) ShareShare
ReportReport
Posted on by 105

For example, the site has the below nav items, how to hide the ones in red box before sign in, and show these hidden nav items after sign in? Please provide some detailed steps if possible, thanks.

jwnz_0-1664487137367.png

 

 

Categories:
  • PaulJSwider Profile Picture
    152 on at
    Re: How to hide navigation items before sign in?

    If you're concerned about security you should use access control rules.

  • ragavanrajan Profile Picture
    7,036 Most Valuable Professional on at
    Re: How to hide navigation items before sign in?

    Hi @jwnz 

     

    Please follow the instructions from @eugenevanstaden . You can use liquid to build dynamic content. In addition, there is also a way to use the web page access control rule. Closely related to your query. 

     

    https://ragavanrajan.medium.com/power-pages-how-to-hide-profile-page-for-custom-web-roles-3ed5de54d704 

     

    You can tweak the logic as per your need. 

     

     


    Hope it helps. 
    ------------

    If you like this post, give it a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users to find it.

  • eugenevanstaden Profile Picture
    424 on at
    Re: How to hide navigation items before sign in?

    @jwnz 

    In the header template you can use Liquid to hide blocks by checking the user object.

    {%if user%}
    enable your nav HTML here
    {%endif%}


    @

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard >