Jump to content

asilentwish

Members
  • Posts

    2
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

asilentwish's Achievements

Newbie

Newbie (2/6)

0

Reputation

  1. Thank you for your replies but that didn't seems to work for me. Here is a screenshot of my problem. I want the submenu (the part in black) to only show the same pages as the listview (left side). When I hover over Structuur I only want to see: Home Vacatures when i hover over Vacatures I only want to see the two pages seen in the left side 1070 1069 Unfortunately I see all pages and can even edit them all.
  2. Hello, I'm new to the forum and was wondering how to do the following: I have created a role for certain users who are only allowed to edit their own pages. I created a module which list only their pages. public function viewable(HookEvent $event) { if(!$event->return) return; $page = $event->object; if($this->user->name !== $page->createdUser->name && $page->id != 1 && $page->id != 1046) $event->return = false; } The superuser sees this: Home - Page --Subpage 01 --Subpage 02 --Subpage 03 --Subpage 04 --Subpage 05 The specific user sees this: Home - Page --Subpage 02 --Subpage 05 This works just fine. But when I'm logged in as a specific user I still see all the pages in the submenu and can still edit them. I don't want this. Is it possible to remove all the other pages and only show the pages that the logged in user created? Is is also possible to remove them from the search results when I'm logged in with specific role? Thank you in advance. Alvina
×
×
  • Create New...