Bike Posted August 2, 2021 Share Posted August 2, 2021 Hi everyone, I have pages each with a PageReference field. Now I need to set up a selector for that field to show only their child pages. It must be something like parent.id=1024 but without that fixed id. Or maybe I need a totally different selector? Does anyone unterstands? ? Link to comment Share on other sites More sharing options...
Gideon So Posted August 2, 2021 Share Posted August 2, 2021 Maybe just $page->children in the custom selector field? Gideon Link to comment Share on other sites More sharing options...
Bike Posted August 2, 2021 Author Share Posted August 2, 2021 Thanks @Gideon So, but that's not working. That field doesn't accept variables like $page ... Here's what I'm talking about: Show children of that page only... I don't even know, if it's possible. Link to comment Share on other sites More sharing options...
Gideon So Posted August 3, 2021 Share Posted August 3, 2021 Try put $page->children into the custom PHP code field. Gideon Link to comment Share on other sites More sharing options...
Bike Posted August 10, 2021 Author Share Posted August 10, 2021 Thanks @Gideon So, I actually managed to get it working with a hook. Now I have another field that lists all items of a repeater field. It looks like this: Is there a way to change the appearance of that label which is showing that mysterious numbers? I'd like to have a simple numberation (since the repeater items have no titles). Do I have to change the hook code to achieve that? I have no clue .... Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now