Jump to content

Pagetable field renders items from parent instead of other selected parent


Juergen
 Share

Recommended Posts

Hello @ all,

I have included 2 pagetable fields in a template. The first is for the child pages (events), the other one should render pages from another parent page (prices).

Screenshot_10.jpg

As you can see "eventpriceitem" template is selected as the template for the pagetable field. Below I have choosen the page "Event prices" as parent.  The pagetable field renders also children items too.

Screenshot_11.jpg

All the items with the blank value are children (events) of the page and not part of the price page. I dont know why the page table field renders also items which are not part of the parent (Event prices), because I have choosen this page as parent.

Is it possible that 2 pagetable fields are not allowed?

Link to comment
Share on other sites

I'm not sure if my module would really fit this task, as this seems a rather straight-forward use of page tables while JsonNativeField is for free-form key-value storage per page without constraints. It's also a few weeks from being complete enough to use in a real world scenario.

As for switching database engine: changing an existing database is a little more involved than just changing a config entry. I wrote a script to automate the conversion a while ago:

 

  • Like 1
Link to comment
Share on other sites

Since in my case there is only one pagetable field, I don't think that it matters that you have two of them.

Strange enough, I think I had this issue a while ago and found a workaround - but don't remember what I did...

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...