Mobile: remove sign in/sign out
Hi,
I am new to lithium and I'm trying to make a mobile page. So in the mobile page, I could see the "Sign In" link in the body (I assume this is a component?). Instead of having the "Sign In" link in the body, I want to move it up in the header ("Community Style" -- "Wrapper" -- "Page Header" section).
Please advise.
Thanks,
KL
The components on the mobile site are managed via Studio, Page, Canvas. You need to 'choose' the page type. By default, the sign in link is in the 'Mobile Header' page - the component is called "users.action.login".
You can remove the component from the header here. However, I don't know that there's any way to include components in the skin wrapper. However, since it's just a link, you could add something like the following code:
<#if user.anonymous == true> <a href="${webUi.getUserLoginPageUrl("/")}">Sign in</a> <#else> <a href="${webUi.getUserLogoutPageUrl("/")}">Sign out</a> </#if>
That is how we've added the sign in/sign out links to our wrapper.
HTH