Jump to content

Restrict selectable pages with created_users_id


celfred
 Share

Recommended Posts

Hello,

I'm struggling with this : a 'group' field of 'Page' type.

The parent of selectable pages is '/groups', the template is 'group', and a member can create some groups in the /groups tree. I would like this user to see only the groups he or she has created so in my 'Find selector' in the backend, I would like to use :

template=group, created_users_id=$user->id

But that doesn't seem to work... I still get the list of all available groups in the /groups tree.

Any idea ?

I had a feeling I had already seen that before (something like $user->id must be replaced by users_id or something, but I can't find anything in the Forums... and all my tests keep failing...

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...