How to remove the link?
maxyaeger
New
Hi a noobie question, how do i remove the link that it ads on my navigation menu? I don't want the link "Members" .
Thanks!
0
maxyaeger
New
Hi a noobie question, how do i remove the link that it ads on my navigation menu? I don't want the link "Members" .
Thanks!
Comments
in default.php of the plugin you have this function:
public function Base_Render_Before($Sender) { $Session = Gdn::Session(); if (($Sender->Menu) && ((CheckPermission('Plugins.MembersListEnh.GenView')) || (CheckPermission('Plugins.MembersListEnh.IPEmailView')))) { //$Sender->Menu->AddLink('Members', T('Members'), 'members'); // disable this line } }Disable line 7 above
Sweet thanks
If you do not need that link, you could completely comment out
public function Base_Render_Before?. There is no need to call that function if no action is taken there.Put a
/*before and a*/below it.People could still access the list even if you remove the link from view.
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌