Jump to content

Add new pages with Page edit per user module


verdeandrea
 Share

Recommended Posts

Hi guys,

I'm using the Page edit per user module and i find it really useful but, as I can see, i doesn't allow the user to add new children for a page.

Is it right? 

Is there a way to let the user add children to a page he has rights to edit?

Thanks!

Link to comment
Share on other sites

The users must have the right template rights for that. The modules it self just restricts access the given access if it's not on his brance...


// more hooks for this module
$this->addHookAfter('Page::addable', $this, 'hookPageAddable');			
$this->addHookAfter('Page::editable', $this, 'hookPageEditable'); 
$this->addHookAfter('Page::viewable', $this, 'hookPageViewable');
$this->addHookAfter('Page::sortable', $this, 'hookPageSortable');
$this->addHookAfter('Page::deleteable', $this, 'hookPageDeleteable');
$this->addHookAfter('Page::moveable', $this, 'hookPageMoveable');
Edited by Martijn Geerts
Link to comment
Share on other sites

Thanks Martjin.

I'm not sure i got it...

This is my situation:

I have these pages

- Group A (template: "group")

--- Events (template: "events_list")

------ Event lorem ipsum (template: "event")

------ Event dolor sit amet (template: "event")

------ ect.

- Group B (template: "group")

--- Events (template: "events_list")

------ Event blablabla (template: "event")

------ Event blablabla2 (template: "event")

------ ect.

- Group C (template: "group")

--- Events (template: "events_list")

------ Event abcd (template: "event")

------ Event efgh (template: "event")

------ ect.

What i need is to create a user that can add event pages just for the Group A, or just for the Group B, or Group C.

All the pages share the same tamplates so i'm not sure how i can use the hooks you suggested.

Link to comment
Share on other sites

Thanks cstevensjr,

so i need to create different templates for every group and different templates for every event list, and then set their access differently for every user?

Is there a chance to use the same template but differentiate the access for the group page and events list?

Link to comment
Share on other sites

You could create roles for Group A, Group B and Group C.  Give each role appropriate permission.  Assign each user to the Role that is needed to do what you want.

On each template, enable "Do you want to view and edit access for  pages using this template?"  Give access to the appropriate Roles as required.  The last access option on that page  is "Add Children"

Link to comment
Share on other sites

Yes, a template can have different roles assigned to it, that's what the Access tab is for (to further define what type of access you want to have).  I would also look at the module Adrian is mentioning.  

The best way is to just enable the feature, create the individual roles and play with it (if you can).

Edited by cstevensjr
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...