put this in the default.master.php
if (Gdn::$Session->IsValid()) {
$this->Menu->AddLink('FAQS', T('FAQS'), '/faqs');
}
put this in the application
if (!Gdn::Session()->IsValid()) {
exit();
}
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
That hided also other custom page link that is listed after 'Faq' and which I want guests to see since it's a contact page, but I solved that with adding manage and view options to contact-page.
I could have naturally moved contact link before faq if it was any other page, but contact just shoudn't be in the middle of main menu unless that is most important page of the site.
peregrine said:
the options for permissions will show up in each role towards the bottom just before the default category permissions.
Comments
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
I get Fatal error: Access to undeclared static property: Gdn::$Session in /themes/default/views/default.master.php on line 32
try this then
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
^ Just superb! That did it. Thank you once again![:) :)](https://open.vanillaforums.com/plugins/emojiextender/emoji/little/smile.png)
That hided also other custom page link that is listed after 'Faq' and which I want guests to see since it's a contact page, but I solved that with adding manage and view options to contact-page.
I could have naturally moved contact link before faq if it was any other page, but contact just shoudn't be in the middle of main menu unless that is most important page of the site.
I found an answer to this, why I did not see any new options in role management. In order to changes take an effect, plugin needs to be turned off and back on.