Project:Menu Trim
Version:5.x-1.0
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

I'd like my trim'd block to display as per the rules I set using admin/config settings, plus a few URL patterns. I think this can be done using the "Show if the following PHP code returns TRUE " option, and I've tried combing the logic in menu_trim_block and adding my URL patterns, but I suck at PHP. A sample snippet would be much appreciated.

Comments

#1

I am using Menu Trim with my Primary Menu, and have set 'Allow trimming, hide when inactive'.

I just realised that any PHP code entered into 'visibility settings' isn't being applied. As a test I entered <?php return TRUE; ?>, which I'm assuming will display the block on all pages and not just menu/child pages, but it's following its own Menu Trim rules.

If I'm understanding this correctly, I guess 'make compatible with block visibility settings' needs to be a feature request?

nobody click here