cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
SoufianeA
New Member

Dynamic navigation elements

Hello everyone, 
I am trying to find a solution for the following scenario :
When the user navigates to a page, there should be some control that will show dynamic navigation elements only for this page, same thing when he accesses another page, there should be also a control that will show only some navigation elements and not all.
Web access is not a solution as it has nothing to do with login, the user will be already logged in, but only the navigation elements will change from page to page.
Thanks for your attention. I’m looking forward to your reply.

1 ACCEPTED SOLUTION

Accepted Solutions
OliverRodrigues
Super User
Super User

Hi, the navigation elements you want to hide/show, are you rendering them via HTML?

if yes, you can check any attribute from your user via Liquid, so you can decide if you want to render the link or not, for example:

{% if user.new_type == 1 %}
    <a href="xxxx">Click here for XXXXX</a>
{% endif %}
{% if user.new_type == 2 %}
    <a href="yyyy">Click here for YYYYY</a>
{% endif %}

you can also use case/switch if you have multiple conditions: https://docs.microsoft.com/en-us/powerapps/maker/portals/liquid/control-flow-tags

 




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

Power Apps Portals Super User


Oliver Rodrigues


 

View solution in original post

2 REPLIES 2
OliverRodrigues
Super User
Super User

Hi, the navigation elements you want to hide/show, are you rendering them via HTML?

if yes, you can check any attribute from your user via Liquid, so you can decide if you want to render the link or not, for example:

{% if user.new_type == 1 %}
    <a href="xxxx">Click here for XXXXX</a>
{% endif %}
{% if user.new_type == 2 %}
    <a href="yyyy">Click here for YYYYY</a>
{% endif %}

you can also use case/switch if you have multiple conditions: https://docs.microsoft.com/en-us/powerapps/maker/portals/liquid/control-flow-tags

 




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

Power Apps Portals Super User


Oliver Rodrigues


 

Thank you this solved my problem!

 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Carousel News & Announcements 768460.png

What's New in the Community?

Check out the latest News & Events in the community!

MPP IDEAS updated 768x460.png

Ideas

Discover ideas and concepts from users like you for how to use Power Pages and take your work to the next level.

Users online (2,609)