on 06-04-2012 12:29 PM
We're using Single Sign-On.
Is it possible to remove the "Register" and "Sign In" links from the User Navigation Links in the Header?
I want to leave the User Navigation Links in general in order to maintain the links to "My Settings" and "Help," but I want to remove the links that will be redundant in our top nav.
on 06-06-2012 01:26 PM
Yes, it's possible. You need to create a custom user navigation component and replace the builtin one with that.
The content should probably look something like this as you probably want to show the default user nav when the user is not logged in:
<#if user.anonymous == false>
<@component id="common.widget.user-navigation"/>
<#else>
<div class="lia-quilt-column lia-quilt-column-18 lia-quilt-column-left lia-quilt-column-user-navigation">
<div class="lia-quilt-column-alley lia-quilt-column-alley-left">
<ul id="list" class="lia-list-standard-inline UserNavigation lia-component-common-widget-user-navigation">
<li><a class="lia-link-navigation registration-link lia-component-users-action-registration" id="registrationPageV1" href="${text.format("customnav.registration.url")} ">${text.format("customnav.register")}</a></li>
<li><@component id="common.widget.user-nav-separator-character" /></li>
<li><@component id="users.action.login" /></li>
<li><@component id="common.widget.user-nav-separator-character" /></li>
<li><@component id="help.action.faq" /></li>
</ul>
</div>
</div>
</#if>
Make sure to create the two strings customnav.registration.url & customnav.register used in this component for your SSO registration url and the "Register" string itself:
You must be a registered user to add a comment here. If you've already registered, please log in. If you haven't registered yet, please register and log in.