answer
Occasional Contributor
sefreema
posts: 6
registered: ‎01-24-2012
Accepted Solution
Remove "Register" and "Sign In" links from User Navigation Links in Header?

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.

1 person had this problem.
View Entire Topic
Claudius
posts: 399
topics: 50
kudos: 109
Ideas: 26
solutions: 34
registered: ‎03-07-2011
answered

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: 

If you appreciate my efforts, please give me a kudo ↘
Accept as solution to help others find it faster.