Closed (won't fix)
Project:
Menu Trim
Version:
5.x-1.0
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
8 Dec 2008 at 07:36 UTC
Updated:
1 Feb 2013 at 16:02 UTC
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
Comment #1
kulfi commentedI 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?
Comment #2
simon georges commentedThis version of Menu Trim is not supported anymore. The issue is closed for this reason.
Please upgrade to a supported version and feel free to reopen the issue on the new version if applicable.