wesp Posted October 21, 2021 Share Posted October 21, 2021 Hi all, Is there a way to add all selectable pages at once to a page reference field (via a button click or as another selectable option)? Thanks for any help! Link to comment Share on other sites More sharing options...
virtualgadjo Posted October 24, 2021 Share Posted October 24, 2021 Hi, if you have chosen the multiple select option for the field, it acts like a native html multiple select, click on the first one, hold the shift key and click on, the last one, job done if instead of a select you've... selected the checboxes option, well, personally i would go for another toggle/checkbox or else field saying all the pages and if checked, in the template i would use the same selection as the one you've set for the reference field with a $pages->find(...) in case it helps have a nice day Link to comment Share on other sites More sharing options...
wesp Posted November 2, 2021 Author Share Posted November 2, 2021 Hi @virtualgadjo Thats actually good to know that its that easy for the multiple select fieldtype. But I am actually building a backend to be used by the client and am searching for a more intuitive approach here. To be able to sort the selected pages I am also using AsmSelect as the input field type and for that your hack isn't working. But thank you anyway ? 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