I have a site that's built around a set of educational activities - there's a central menu with a link and a story for each one. I'm using a flat mainmenu list with the images stored in images/stories. This looks fine, but users (including me) keep clicking on the images expecting them to link to the relevant pages.
I'm trying to modify mod_mainmenu.php to add link tags around each image, but I find that my changes don't show up in the reloaded page. The issue seems to be related to the constant declaration near the beginning of the file:
if (!defined( '_MOS_MAINMENU_MODULE' )){
/** ensure that functions are declared only once */
define( '_MOS_MAINMENU_MODULE', 1 );
Anything I add outside this declaration is run when the page reloads, but anything within isn't. This seems to effectively block me from editing any of the functions within - because _MOS_MAINMENU_MODULE is a constant, I can't change or redefine it. It doesn't expire between page refreshes.
Am I missing something obvious?
Joomla 1.0.12 - Modifying mod_mainmenu.php Topic is solved
Moderators: tjay, seadap, Rogue4ngel, matthewhayashida