Marking protected pages in your navigation

  Previous article Next article  

Marking protected pages in your navigation

  Article optimized for CMSMS 2.x

  Author:
  Last tested in: CMSMS 2.2.3.1
  Last updated: 23-08-2016
  Comments: 1

When using Calguy1000's FrontEndUsers module in CMS Made Simple you can easily protect the content of your pages and hide the buttons in the navigation for visitors who are not logged in.
But when you are logged in, you can't see the difference in the menu between regular and protected page buttons. With a small addition to the menu template you can add that feature.

Because there are several menu templates, I will give a general explanation on adding it. You will need to see for yourself how it works in your template.

  How to use

For changing a navigation template, you have to go to the Design Manager and look for your (default) Navigator template.

Search in the template for the parameter {$node->menutext}. Depending on your template you can find it in multiple lines!

Some examples how to change it:

A. Add a marker

{$node->menutext}{if $node->type == 'feu_protected_page'} *{/if}

B. Change the button styling with a class

{if $node->type == 'feu_protected_page'}<span class="protected_page">{/if}
  {$node->menutext}
{if $node->type == 'feu_protected_page'}</span>{/if}

Stylesheet example

.protected_page {
  /* style declarations */
}

More information on Navigator template parameters.


A2 Webhosting CMS Made Simple

  Comments

  Click here to leave a comment






This is a captcha-picture. It is used to prevent mass-access by robots. (see: www.captcha.net)
  « Enter the CAPTCHA code (lower case)

Your IP address will be stored on submit. I reserve the right to change or delete your response without notice!
In case of abuse your IP address will be blocked!


Can I have your attention for a moment?

Did this tutorial help you solving a problem at your (clients) website and it saved you many hours of work? Great!!
Consider buying Rolf a cup of coffee in return! [ Click here ]


  1 Comment

CMS Made Simple 2.2.3.1 - Tutorials, tips and tricks - CMSMS 2.2.3.1

Marking protected pages in your navigation

  Article optimized for CMSMS 2.x

  Author:
  Last tested in: CMSMS 2.2.3.1
  Last updated: 23-08-2016
  Comments: 1

A2 Webhosting CMS Made Simple