Jump to content

Select all Pages


Recommended Posts

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

Link to comment
Share on other sites

  • 1 month later...

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

  • 2 weeks later...

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

  • 6 years later...

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

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
 Share

×
×
  • Create New...