Anonymous view line.tpl but not full.tpl

Author Message

Esben Maaløe

Sunday 13 July 2003 11:14:46 am

I would like to list some objects that the anonymous can see the name of - but not read until he logs in.

So when he clicks the exciting link - he gets redirected to the login/register dialogue

The permisson system baffles me a little and I don't know how to do it.

Any help immensely appreciated

Bård Farstad

Sunday 13 July 2003 11:31:00 am

To do this you don't need to use the permission system, actually. What you would do is to create line.tpl in the normal way, but in the full.tpl you would do a check on the users group.

You would check if a user is member of a certain group. If the user was part of that group you would show the content, if now you would show a text that the user needs to log in before the content is shown. This can be done with section code in the template.

--bård

Documentation: http://ez.no/doc

Esben Maaløe

Sunday 13 July 2003 2:07:50 pm

Cool - I'll do that, thnx.

But it is a hack :) It takes administrative power away from the non-programming administrator

A good idea would be to have a permission called 'list' - I suspect that what I want to do here is fairly common...

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.