Share » Forums » General » how to do some personalisation ?

how to do some personalisation ?

how to do some personalisation ?

Thursday 13 January 2005 12:53:13 am - 2 replies

Author Message

Eivind Marienborg

Thursday 13 January 2005 3:14:55 am

{let    user=fetch( 'user', 'current_user' )
        approved=false()}

{section loop=$user.groups}

{switch match=$:item}

{case match=OBJECT_ID_OF_USER_GROUP}
        {set approved=true()}
{/case}

{/switch}
{/section}

{/let}

{section show=$approved}
{* THINGS TO SHOW MEMBERS OF GROUP *}
{/section}

This works at my site, I think-

orlando gall

Thursday 13 January 2005 7:33:43 am

okay, thx i'm not sure to understand exactly (because not yet fluant with the templating language) but i think this is not exactly what i meant.

I want to define in the back end, that a specific content will be only available to a specific user or user groupe.
I want to do this not once but many times, so i would need to do it using the administration consile, and not via coding.

A solution would be to define an attribute in the class defining my content. This attribute would define the ID of the user allowed to view the content ...

anyone did this this ?

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu