BFD Calendar Posted October 8, 2023 Share Posted October 8, 2023 On an 'exhibitions' template I have a Page Auto Complete field 'works_id_list' with a multiple page array, where I can choose works that were to be seen in this exhibition. On the front page, the list of works can be seen. Most of the 'works' have the parent 'Works', but recently I want to add pages from a different parent as well. I can add them in the 'Custom find' or 'Selector string' part, and find/select them but they are not validated because they are not in the parent 'Works'. Although it says in the template part of 'selectable pages' "Select the template of the pages that are selectable. May be used instead of, or in addition to, the parent above." there seems to be no way to remove the parent, only change it to a different one. Any way to solve this? Link to comment Share on other sites More sharing options...
elabx Posted October 9, 2023 Share Posted October 9, 2023 I'd need to do a dig in my repositories but I remember doing something like this hooking into InputfieldPage::processInput and updating the parent_id property of the InputfieldPage object before processing the page to be saved, so that it would make it valid. Link to comment Share on other sites More sharing options...
BitPoet Posted October 9, 2023 Share Posted October 9, 2023 11 hours ago, BFD Calendar said: there seems to be no way to remove the parent, only change it to a different one. If you expand the page tree in the parent select, you should be able to click "unselect" next to the "works" page. 1 Link to comment Share on other sites More sharing options...
BFD Calendar Posted October 9, 2023 Author Share Posted October 9, 2023 35 minutes ago, BitPoet said: If you expand the page tree in the parent select, you should be able to click "unselect" next to the "works" page. Thanks! 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