Take the 2-minute tour ×
Joomla Stack Exchange is a question and answer site for Joomla! administrators, users, developers and designers. It's 100% free, no registration required.

I've made a finder plugin which creates router links to my component. If there is no menu link available (especially when the found item is in a subcategory) the route of the item in the finder plugin has the ItemId of the start (home) page. The problem is that I've enabled a module on the start page. If somebody does now a search on that site and clicks on the found item the module will be shown, but I want to hide it. An example can be found here

https://joomla.digital-peak.com/component/finder/search?q=google&Itemid=1098

Is there a way to define in the module parameters that it should be shown only when it is on the Home_Root and no path is specified?

share|improve this question

1 Answer 1

up vote 4 down vote accepted

Since a module is assigned on a specific item id, then it will be displayed, when this itemid exists in the url.

  1. You could create a specific menu item, probably hidden, for the display of the links, where you can assign only the modules you want to display.

  2. In such cases, it comes handy the Advanced Module Manager by NoNumbers, which gives you much more control on where & when a module will be displayed. There is a free version to try it.

share|improve this answer
    
I concur with using Advanced Module Manager. Short of adding some logic into your module, it's the easiest way to force something ONLY load on the front page and nowhere else. –  Brian Peat Jun 5 at 16:57

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.