I was talking to Amy yesterday about something I missed in Joomla!
The ability to tell modules to appear on all pages except the selected ones.
Intro to problem
You must know the problem:
You have a module you want on all pages except the home and contact page for instance.
So you go to the modules
Menu Assignment and choose
Select Menu Item(s) from the List
You select all but Home and Contact. And all is fine and dandy.
Then you add a menu item and oops... the module doesn't display on that new page.
So you have to go back into the module and add that menu item to the selection.
That can get pretty gruesome when you have multiple modules like this. And even worse if you have clients who want to manage their own menu's...
Solution: A Patch?!
Anyway, long story. So I thought today, I would see if I could make a fix for this.
Unfortunately you don't have any triggers in Joomla! on modules (like on content). So you can't use a (system) plugin to do stuff to change the module behavior. Not that I know of anyway...
So I have had to change core files to do the change... a dirty hack. Or - if you want people to use it - call it a patch.
I know, I hate patches too. Patch is lost after Joomla! update and have to repatch... but it is better than nothing.
So I have changed a few files so the option
Select Menu Item(s) from the List to Exclude is added.
Then the items you have selected in the
Menu Selection will not show the module, and all other pages will.
The codeBecause code look kinda daft here, I put it all in a text file:http://www.nonumber.nl/uploads/com_modules-patch.txt
Your thoughts
I haven't extensively tested this. It works with my first few try outs. So sorry if there are any stupid mistakes in there.
But let me know what you think of the whole idea all together...
Released as extension
http://www.nonumber.nl/advancedmodulemanager
You need to be a member of All Together, As A Whole to add comments!
Join All Together, As A Whole