By destinyfaith on
I wasn't sure if this should be in support or not. I'm working on a Drupal website that has a main menu.
In the main menu, each item has children links and each child link goes to a page that lists events.
I'm trying to figure out how to dynamically disable the children links for the pages that do not have any events tied to them.
Comments
=-=
per https://www.drupal.org/node/643758 please edit your post and move it to the 'post installation' forum.Thank you.Just did, thanks!
Just did, thanks!
=-=
I assume the menu items link to views of the events?
Either way, there is no configuration for this request. You will likely need some custom code. You failed to tag your thread with the version of Drupal in use which makes it difficult to perform any further research for you.
Updated with drupal version
Updated with drupal version number.
I am trying to programmatically modify it, but my problem is that the only code I see for rendering is
print render($main_menu);=-=
In that case you'll want to move the post again into the 'module development and code questions' forum.
A google search uncovers https://drupal.stackexchange.com/questions/204811/how-to-hide-view-page-... which may be helpful.