Juergen Posted October 3, 2016 Share Posted October 3, 2016 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). 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. 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 More sharing options...
adrian Posted October 3, 2016 Share Posted October 3, 2016 Hi @Juergen - sorry, not sure about your issue, but looking at the contents of your page table, I couldn't help but think this new module by @BitPoet could be a much nicer replacement: 1 Link to comment Share on other sites More sharing options...
Juergen Posted October 3, 2016 Author Share Posted October 3, 2016 Unfortunately I cannot use this module: InnoDB database engine needs to be used Link to comment Share on other sites More sharing options...
Juergen Posted October 3, 2016 Author Share Posted October 3, 2016 I dont know if it works if I change the db type in $config->dbEngine . I dont want to crash the site. Link to comment Share on other sites More sharing options...
BitPoet Posted October 3, 2016 Share Posted October 3, 2016 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: 1 Link to comment Share on other sites More sharing options...
ottogal Posted October 3, 2016 Share Posted October 3, 2016 I can confirm jüergen's observation (PW 3.0.35, but had it already in earlier versions). No second page table field present. 1 Link to comment Share on other sites More sharing options...
Juergen Posted October 4, 2016 Author Share Posted October 4, 2016 Yes I also use PW 3.0.35, but its the first time I have tried to use 2 pagetable fields in 1 template. So I am not able to say if it had been working in lower versions. Link to comment Share on other sites More sharing options...
ottogal Posted October 4, 2016 Share Posted October 4, 2016 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 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