Jonathan Claeys Posted November 18, 2016 Share Posted November 18, 2016 Hi, for a website I'm developing I was trying to use the PageTable field, but I can't seem to get it work. All access rights should be fine. The superuser & editor can add items. But only the superuser sees them. For some reason the editor role doesn't see them after they were added. I've found some posts back from 2015 with this issue, is this still a bug or is there already a fix? I'm having this issue with Processwire 3. 1 Link to comment Share on other sites More sharing options...
szabesz Posted November 20, 2016 Share Posted November 20, 2016 On 11/18/2016 at 9:30 AM, Jonathan Claeys said: I've found some posts back from 2015 with this issue this one? https://github.com/ryancramerdesign/ProcessWire/issues/1257 Let's ping @arjen to ask for a status update on this issue. 1 Link to comment Share on other sites More sharing options...
Jonathan Claeys Posted November 21, 2016 Author Share Posted November 21, 2016 Yes, that's the post Link to comment Share on other sites More sharing options...
Robin S Posted November 21, 2016 Share Posted November 21, 2016 On 18/11/2016 at 9:30 PM, Jonathan Claeys said: But only the superuser sees them. For some reason the editor role doesn't see them after they were added. Doesn't see them on the front-end or in the admin? Where in the tree are the PageTable pages stored? Are the PageTable pages viewable by editor if you load them directly on the frontend (i.e not via the PageTable field)? Link to comment Share on other sites More sharing options...
Jonathan Claeys Posted November 21, 2016 Author Share Posted November 21, 2016 It's in the admin, and you can add them as an editor but you can't see them in the PageTable field. They are stored as children of that page. I use it to allow my client to make multiple image galleries with extra fields. Link to comment Share on other sites More sharing options...
Robin S Posted November 21, 2016 Share Posted November 21, 2016 2 minutes ago, Jonathan Claeys said: They are stored as children of that page. So if you go to those child pages in the tree (not via the PageTable field), can the editor edit those pages? Does the editor role have edit and view permission for the template used by the pages? Link to comment Share on other sites More sharing options...
Jonathan Claeys Posted November 21, 2016 Author Share Posted November 21, 2016 Yes as an editor, I can see and edit them in the page tree. So I guess my rights are OK. Link to comment Share on other sites More sharing options...
Robin S Posted November 21, 2016 Share Posted November 21, 2016 Well, it has me stumped. I haven't had or heard of this issue before. I doubt the GitHub issue szabesz linked to is related as that is specific to PageTables added to the user template. 1 Link to comment Share on other sites More sharing options...
Jonathan Claeys Posted November 21, 2016 Author Share Posted November 21, 2016 I found the problem, I had my parent under wich the children were saved under the Admin section, the admin is a hidden page. Seems that if one of his ancestors has a hidden status the PageTable won't list it's children. Might be better that it would only check it's parent instead of it's ancestors. But for now I just moved my categories page. 1 Link to comment Share on other sites More sharing options...
Robin S Posted November 21, 2016 Share Posted November 21, 2016 23 minutes ago, Jonathan Claeys said: Seems that if one of his ancestors has a hidden status the PageTable won't list it's children. That's not the case - I always keep my PageTable items under the Admin branch of the tree and don't have any issues with non-superusers viewing and editing PageTable pages. You just need to make sure: The editor role has edit access (and of course view access) for the template used for the PageTable pages. The editor role has "Add children" access for the template used for the parent page of the PageTable pages. You set this in the "Access" tab of the settings for each template. Link to comment Share on other sites More sharing options...
Jonathan Claeys Posted November 21, 2016 Author Share Posted November 21, 2016 I know, I've developed several sites already with Processwire, but never used the PageTable before. Now it is working if it's not hidden. But still when I add an item it only updates after saving the page. The PageTable doesn't get updated after adding a new item. 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