
Hi All,
I've a business logic to have two profile page where one is Out of the box profile while the other one is custom profile page. Here, I would like to hide/show one page at a time and show two page simultaneously. Initially, i tried to hide custom profile page with Content Access Rule and Web Role by following these steps,
However, when the user is logged into portal and assign the web role I created, it didn't work for me.
Could anyone please help me how to implement this.
Thank you,
Leo Fernandas
I dont know that approach will work as there is a link to the page in the header, but I have not tested.
1. The link itself is controlled in the header web template and directs to the profile site marker. You could create a second site marker ex. Profile2 and link to your custom page. Then adjust the liquid else if to display the page.
{% endif %}
{% else %}
<li role="none"><a role="menuitem" aria-label="{{ snippets["Profile Link Text"] | default:resx["Profile_Text"] | escape }}" href="{{ sitemarkers['Profile'].url | escape }}">{{ snippets["Profile Link Text"] | default:resx["Profile_Text"] | escape }}</a></li>
{% endif %}
<li class="divider" role="separator" aria-hidden="true"></li>
<li role="none">
<a role="menuitem" aria-label="{{ snippets["links/logout"] | default:resx["Sign_Out"] | h | escape }}" href="{% if homeurl%}/{{ homeurl }}{% endif %}{{ website.sign_out_url_substitution }}" title="{{ snippets["links/logout"] | default:resx["Sign_Out"] | h | escape }}">
{{ snippets["links/logout"] | default:resx["Sign_Out"] | h | escape }}
2. You could also add JS to to the page to rewrite the URL.