Developer forum

Forum » Rapido » Permissions frontend

Permissions frontend

Anders
Reply

Hi,

We have a customer that have 2 content rows on the front page (visual editor). One should only display for anonymous users and one should only display for authenticated users in frontend.

Can you advise us to how to do this using permissions?

 

Br,

Anders

 

 


Replies

 
Nicolai Pedersen
Reply

Hi Anders

Currently you cannot... Rows are layout - not content, hence no permissions. I can see that is a wrong assumption!

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Anders,

You need to customize the template for Rows and the ItemType for rows.

In the ItemType you can add a checkbox "Hide for Anonymous users".

And in the Row template you have to check if the user is authenticated (or if UserID > 0). Then, you have to combine the user check and the checkbox on the row.

Not standard but also not very Custom either.

Adrian 

 
Anders
Reply

Thanks Nicolai and Adrian!

We will manage in the template then :)

 

Br,

Anders

 

You must be logged in to post in the forum