Jump to content

Recommended Posts

Posted

Reference: PW 3.0.111 and uikit3 based site using the Regular-Master profile.

I was wondering if there is a way to restrict user navigation to specific pages.

Login (home.php - not to be displayed)
    |__  About (not to be displayed)
    |__  Clubs (not to be displayed)
    |            |__ Club (to be displayed)
    |                       |__  Club Members (to be displayed)
    |__ League (not to be displayed)
    |            |__Season (not to be displayed)
    |                       |__  Match (not to be displayed)
    |__  News (blog.php -  to be displayed)
    |
etc, etc

Based on the above the navigation needs to appear simply as:

---------------------------------------------------------------------------
                     Club    Club Members    News    
---------------------------------------------------------------------------

Any thoughts appreciated.

Posted
2 hours ago, ridgedale said:

I was wondering if there is a way to restrict user navigation to specific pages.

 

2 hours ago, ridgedale said:

Based on the above the navigation needs to appear simply as:

You mean display on the frontend? Check if the page is viewable for that user. The page would need to be access-controlled

// in a loop for menu items...
if(!$page->viewable()) continue;

 

  • Like 1
Posted

@kongondo ,

Thank you for your reply. Yes that's correct, to be displayed on the frontend. When I have tested hiding the Login (home) page PW3 appeared to ignore the setting change for page and does not appear possible to remove the view attribute for the login/register role.

I've managed to achieve what I need by creating static navigation using the Uikit framework. It would be useful to be able to control this from within PW3, though.

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
×
×
  • Create New...