Developer forum

Forum » Swift » Swift 2 Login and My Account combined in header

Swift 2 Login and My Account combined in header

Nicolai Jessen
Nicolai Jessen
Reply

Hi, 

I'm looking for a solution regarding the Login and My account menu components in Swift 2. 

Basically I want to show login when not authenticated and hide it when authenticated - Reverse for My account. 
This is set up and works in the Swift 2 demo. 
The problem is the Icon shift in place because the two component has to be placed individually occupying two columns. 

Is there any workaround to keep the design consistent? Preferably without any codechanges, although open for suggestions.
BR. Nicolai J. 

Logged in: 

Logged out:

 


Replies

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply
This post has been marked as an answer

Hi Nicolai,
The easiest way is to have separate rows for Authenticated and Anonymous users.
This way, you can control exactly what you want to display for each segment.

Adrian

Votes for this answer: 1
 
Nicolai Jessen
Nicolai Jessen
Reply

Thanks for the suggestion! Made a copy of the row and added permissions for Authenticated and Anonymous users. It did the trick :-)

- Nicolai

 

You must be logged in to post in the forum