Jump to content

Recommended Posts

Posted

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...

Posted

Do not use the "find selector", but instead the "string selector" and insert the following code:

template=group, created_users_id=[user]

 

  • Thanks 1
Posted

@jmartsch Thanks a lot for your help ! It works now !

But one thing worth mentionning : I was on a 'Page List Select' and it wasn't working, until I found out I had to use the 'Select' type of field ?

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
×
×
  • Create New...