ROCKETTHEME IS CLOSING ON JUNE 30, 2025. As a thank-you to our community, enjoy 50% off all themes with the promo code THANKYOU before we shut down.
Read our Farewell Blog Post for more details.
How can I hide a module, after a user has left the frontpage?
I want the login module to be disabled the second a user navigates to another section of the site. For instance if he moves to
www.xxx.com/index.php/register
So the module should only show up if the user is on
www.xxx.com/index.php
and nowhere else...
I tried the option within the module to activate it only on the home section but it wont work.
Can somebody pls hook me up with the php command? Would be very thankful.
Re: PHP Question: Hide a module if not on frontpage
Posted 13 years 8 months ago
Hi there,
The main problem is that you do not have an active menu in place at that point so impossible to control modules.
You could probably make this work by using Module Manager from
www.nonumber.nl/
Hope this helps
Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information