eZ Community » Forums » Setup & design » Restricting access to the full view
expandshrink

Restricting access to the full view

Restricting access to the full view

Monday 16 October 2006 10:47:39 am - 5 replies

Hi there,

As you may know, a lot of publication on line, can allow access to some articles to its registered users. But it is frequent that the general public have access to an excerpt of such a content (like in newspaper websites for instance).

It seems that eZ Publish does not allow restriction on views (which in this case of usage is damage), so my question is simple: how would you do (the simplest way for the editors) to achieve this functionality ?

Best Regards

Monday 16 October 2006 11:08:16 am

Where you display the teaser, force the system not to take into account the real access rights.

That's the limitation parameter in the fetch (give it an empty array and it's happy to display everything).

Then, when you click, you got the regular access rights, ie they have to log in.

X+

Monday 16 October 2006 2:04:46 pm

Thanks for your answer Xavier,

Am I wrong when I say this is only available for "list" fetching and not "tree" ?

Regards,
C.

Monday 16 October 2006 5:05:47 pm

Hi Claude

Just try it out...
As far as I know (I think Kristof mentioned this somewhere) the list and tree operators use the same php functions, just with different default values for the parameters, so specifying an limitation array should work for both list and tree fetching.

Greetings from Luxembourg

Claudia

Tuesday 17 October 2006 9:13:01 am

You're right Claudia. For the curious ones, take a look in kernel/content/function_definition.php and search for $FunctionList['list'] and $FunctionList['tree']. The same story for list_count and tree_count.

Tuesday 17 October 2006 10:54:34 am

Yes,

It is what I was thinking. Now I do have the same "issue" on the search fetching function ... But I know where to look at ...

And I confirm that the limitation also work for the search fetch function ... That's nice

Thx,
C.

Modified on Tuesday 17 October 2006 11:30:45 am by Nicolas OTTAVI

expandshrink

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

36 542 Users on board!

Forums menu

Proudly Developed with from