Backend Plus

Extend your back-end to useful features, CMS cleaner (delete cache) and some new dashboard widgets.

Back to Backend Plus Support

thepottingshed
thepottingshed

It's not guaranteed that the Media folder will be selected correctly by the CSS selector, so I would suggest using jQuery instead and creating media-menu.js in the assets/js folder:

$(document).ready(function() { $('li:contains("Media")').css('display', 'none'); });

...and amending Plugin.php

if (isset($preferences['media_menu']) && $preferences['media_menu']) { $controller->addJs('/plugins/indikator/backend/assets/js/media-menu.js'); }

Last updated

gergo85
gergo85

Thank you for your suggestion! I updated the plugin with your idea. But I modified the searching condition because of multilingual support.

thepottingshed
thepottingshed

Excellent, I was getting really confused as to why one of my main menu options was disappearing and the Media folder wasn't. This is when I realised that the folder was being hidden via CSS, but it was the wrong folder.

Thanks for implementing with multi-lingual support which didn't cross my mind to be honest.

1-3 of 3