Jump to content

Recommended Posts

Posted

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.

  • Like 1
Posted
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)?

Posted

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.

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

Posted

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.

  • Like 1
Posted

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.

  • Like 1
Posted
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.

Posted

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.

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
  • Recently Browsing   0 members

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