Loading...
 
Skip to main content

Features / Usability


nested groups homepage

Hi all,

want to set up the home (wikipage) like this:

{CODE(caption="working example 6.3")}{GROUP(groups="Admins")}Admins content
{ELSE}{GROUP(groups="Editors")}Editors content
{ELSE}Anonymous content
{CODE}

{CODE(caption="not working in 7.x anymore")}{GROUP(groups=>"Admins")}Admins content
{ELSE}{GROUP(groups=>"Editors")}Editors content
{ELSE}Anonymous content
{CODE}

any ideas?

SiL3NC3: i just want to set something like that: (in php to understand what i mean)
13:28 SiL3NC3: if (group="super admins") echo this content
13:29 SiL3NC3: else if (group="admin") echo its content
13:29 SiL3NC3: else if (group="registered") echo its content
13:29 SiL3NC3: else ... echo anonymous content


Parser in Tiki7 has been revamped to be more future-proof.

It is also less permissive to invalid syntax.

You are missing a closing {GROUP} 😊


i dont want to close the first tag, because i want another "else if" ...

if i do it in this (documented) way:




Anonymous content

i will get this result as admin:

Admin content
Registered content

but i only want "Admin content" shown up ...

how can this be done?