Hi,
I am trying to implement a Role-Based website. A few parts of my templates should be hidden when a user with a certain role enters the page. I´ve tried to use tags for this.
{hasRole("Admin")}
Status
Time
{/hasRole}
If the user has the role admin the content will be visible otherwise its not rendered onto the page.
I´ve created the extension and passed the regexp. But I am actually failing because it looks like that tags are no intended to use multiple lines of code.
Is there any other chance to achieve this behaviour without using the {if=""}-clause?
Hope you can help me...
Patrick
Hi,
I am trying to implement a Role-Based website. A few parts of my templates should be hidden when a user with a certain role enters the page. I´ve tried to use tags for this.
{hasRole("Admin")} Status Time {/hasRole}If the user has the role admin the content will be visible otherwise its not rendered onto the page.
I´ve created the extension and passed the regexp. But I am actually failing because it looks like that tags are no intended to use multiple lines of code.
Is there any other chance to achieve this behaviour without using the {if=""}-clause?
Hope you can help me...
Patrick