Jump to content

Recommended Posts

Posted

Hi,

For a Page Reference Field I would like to use filter something like this:

parent=$pages->findOne("template=mag-issue, sort=-created")

But I am not able to get it to work using the various options available to define selectable pages. Any idea where I could be going wrong or how to approach it.

Thanks.

Posted

Setting up the template selection to mag-issue and setting the field to single display under Details tab, and  the template setting under Selectable Pages under Input tab. What exactly is not working well? Watch out for hidden pages too!

Posted

There is also a place to put a selector string right bellow that custom find option, try this selector (hope im understanding your issue correctly):

parent.template=mag-issuse, template=article, sort=-created

 

Posted

The site is structured this way:

mag-issue1
- article1
- article2
- article3
...
mag-issue2
- article1
- article2
- article3
...
mag-issue3
- article1
- article2
- article3
...
...

The idea is to select the children of the latest mag-issue as the selectable pages for the page reference 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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...