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.
Solved! Go to Solution.
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
Power Pages Super User | MVP
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
Power Pages Super User | MVP
Thank you this solved my problem!