Nick Tyson Posted July 20, 2010 Report Posted July 20, 2010 Hi all, I've got my installation here: http://nicktyson.me/eastjet And I want to make it so that the picture slider ONLY shows up on the home page. There has to be a function I can use, I just can't figure out what it is. Anyone? Quote
Administrators simpilot Posted July 20, 2010 Administrators Report Posted July 20, 2010 <?php if(MainController::$activeModule == 'yourmodule') { do stuff } ?> 1 Quote
Nick Tyson Posted July 20, 2010 Author Report Posted July 20, 2010 Thanks! BTW: Whats the home page module?? Would that be frontpage_main? Quote
Administrators simpilot Posted July 20, 2010 Administrators Report Posted July 20, 2010 <?php if(MainController::$activeModule == 'frontpage') { do stuff } ?> Quote
Nick Tyson Posted July 20, 2010 Author Report Posted July 20, 2010 <?php if(MainController::$activeModule == 'frontpage') { do stuff } ?> That one didn't work. I tried, that, main, frontpage_main, & home with no luck. Quote
Administrators simpilot Posted July 22, 2010 Administrators Report Posted July 22, 2010 Works for me, might want to try FRONTPAGE in caps, some servers complain about it. Also to test that the function is there you can do -> <?php echo MainController::$activeModule; ?> That will show you what the controller is that you are on. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.