Jump to content

Recommended Posts

Posted

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!

Posted

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

  • 2 weeks later...
Posted

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 ?

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