Sitelet https://github.com/feulf/raintpl3/issues/146
Skip to content

Problem while creating a tag #146

Description

@patrickse

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions