Jump to content

Recommended Posts

Posted

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!

post-2935-0-76248300-1432738143_thumb.pn

Posted

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.

  • Like 1
Posted

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?

  • 1 month later...
Posted

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.

  • 2 weeks later...
Posted

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.

  • 6 years later...
Posted

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}

Posted
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"

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
×
×
  • Create New...