Nick Tyson Posted July 20, 2010 Report Share 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 Link to comment Share on other sites More sharing options...
Administrators simpilot Posted July 20, 2010 Administrators Report Share Posted July 20, 2010 <?php if(MainController::$activeModule == 'yourmodule') { do stuff } ?> 1 Quote Link to comment Share on other sites More sharing options...
Nick Tyson Posted July 20, 2010 Author Report Share Posted July 20, 2010 Thanks! BTW: Whats the home page module?? Would that be frontpage_main? Quote Link to comment Share on other sites More sharing options...
Administrators simpilot Posted July 20, 2010 Administrators Report Share Posted July 20, 2010 <?php if(MainController::$activeModule == 'frontpage') { do stuff } ?> Quote Link to comment Share on other sites More sharing options...
Nick Tyson Posted July 20, 2010 Author Report Share 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 Link to comment Share on other sites More sharing options...
Nick Tyson Posted July 20, 2010 Author Report Share Posted July 20, 2010 Anyone? Quote Link to comment Share on other sites More sharing options...
Administrators simpilot Posted July 22, 2010 Administrators Report Share 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 Link to comment Share on other sites More sharing options...
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.