Florian Grüttner Posted May 27, 2015 Share Posted May 27, 2015 Hi, I created a Field Type: Page and I want to get a Dropdown where all Pages I have in my PW are listed. With custom Selectors it is possible to call Pages e.g. by template. But in my dropdown I cant select this Page. When I am trying to save I will get an error, that this Page is no valid selection. IMHO it depends on the rule of Parent Page that is selected. Are they any ways to get an Array of all Pages i have, without defining a parent page? Greeting from Nuremberg! Link to comment Share on other sites More sharing options...
LostKobrakai Posted May 27, 2015 Share Posted May 27, 2015 You don't need so set a parent, just use a single selector: id|has_parent=1, include=hidden|unpublished|trash|all For the "include" part choose one of the values. Depends on your exact needs. 1 Link to comment Share on other sites More sharing options...
Florian Grüttner Posted May 27, 2015 Author Share Posted May 27, 2015 Thanks a lot. This solution works for listing my Pages. But I throws error on saving page this is not a valid selection. Fehler beim speichern von Feld "finder_link_2" - Page 1144 is not valid for finder_link_2 Any idea? Link to comment Share on other sites More sharing options...
LostKobrakai Posted May 27, 2015 Share Posted May 27, 2015 Are the first two "Selectable Pages" subfields empty? If so than please provide the ProcessWire version you're using. Link to comment Share on other sites More sharing options...
Florian Grüttner Posted July 7, 2015 Author Share Posted July 7, 2015 Yes these fields are empty. I used only your propertys for selectable Pages. My PW Version is 2.5.3. Link to comment Share on other sites More sharing options...
LostKobrakai Posted July 7, 2015 Share Posted July 7, 2015 Could you try out "id<=1, include=all". Not sure what I thought when writing the previous selector. Link to comment Share on other sites More sharing options...
monchu Posted July 14, 2015 Share Posted July 14, 2015 I had similar problem with error page is not valid. In my case, the caused was the selected parent. I delete the field and create a new one, then just select Template of selectable page or custom php, without select the parent part. Link to comment Share on other sites More sharing options...
Florian Grüttner Posted July 22, 2015 Author Share Posted July 22, 2015 I solved the problem also with deleting all fields I used for this case, and new clean setup. Maybe there were some changes during my first setup that broke my fields. But thanks to LostKobrakain for your help. With this expressions it is working fine. You only have to watch out to never define a parent page for your selection. I think this setting is not deletable and breaks your fields. Link to comment Share on other sites More sharing options...
erikvanberkum Posted November 25, 2021 Share Posted November 25, 2021 Just an odd thing someone runs into every 6 years it looks like but today was my turn. Doing a makeover of our website and try to reuse a field. Went into the database table fields, and set the parent_id back to 0. I couldn't find how to reset this on the page itself. {"derefAsPage":0,"inputfield":"InputfieldPageListSelectMultiple","parent_id":0,"labelFieldName":"title","collapsed":0,"operator":"*=","searchFields":"title","description":"A maximum of up to 8 promo blocks can be selected a larger number will not be displayed","findPagesSelector":"parent=\/","usePageEdit":0} Link to comment Share on other sites More sharing options...
erikvanberkum Posted November 25, 2021 Share Posted November 25, 2021 On 7/8/2015 at 12:18 AM, LostKobrakai said: Could you try out "id<=1, include=all". Not sure what I thought when writing the previous selector. this did the trick: "id>=1, include=all" 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