Assing module to shop categories start page only

  • Posts: 48
  • Thank you received: 4
  • Hikashop Business
1 year 11 months ago #347195

-- HikaShop version -- : 4.7.0
-- Joomla version -- : 4.2.5
-- PHP version -- : 7.4
-- Browser(s) name and version -- : any
-- Error-message(debug-mod must be tuned on) -- : none

Hello

My menu item "Home" is of type Hikashop > Categories overview.

In modulemanager I have assigned a module "Blog" to "Home" menu item. I want to show this module on Home only.
But if I click any product sub-category, the blog module is shown as well even if I'm not on the homepage anymore.

How can I assign the blog module so it's visible on Home only?

Thanks.

Patrick

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
1 year 11 months ago #347197

Hi,

If the module would one of the ones in HikaShop, we have display options you can use in the module to do that.
But for another module, Joomla by itself doesn't allow you to restrict it based on something else than the menu item. And thus, since when you click on a category/product of a menu item you stay on the same menu item but display another page of that menu item, you can't do what you want.
There are solutions though:
- instead of using a menu item of the type HikaShop categories listing, you could use a menu item of the type "joomla article, for example, and then create a new instance of the HikaShop content module in the Joomla modules manager configured to display the categories of the shop on that menu item. Then, in the "menu" setting of the "HikaShop options" tab of your module, you can select the target menu item which will display the products / sub categories when you click on a category displayed by the module. That way, if you assign module to the home page menu item, it won't be displayed when you click on a link of the module.
- You could create a HikaShop categories listing menu item for each category displayed on your home page with the corresponding category selected in the "main category" setting of the menu item, and the menu item's parent being the home page menu item.
That way, the system would automatically switch to the sub menu item when generating the link of a category of the home page menu item and the menu assignment of your module would work like you want.
- You could use Advanced Modules Manager Pro. It has display options similar to what we've done in our module, but it works for any module.

The following user(s) said Thank You: pat01

Please Log in or Create an account to join the conversation.

  • Posts: 48
  • Thank you received: 4
  • Hikashop Business
1 year 11 months ago #347248

Hi

Thanks a lot for your suggestions.

I have installed Advanced Module Manager Pro and it works perfectly and it was most easy way to solve the issue :)

Regards
Patrick

Please Log in or Create an account to join the conversation.

Time to create page: 0.064 seconds
Powered by Kunena Forum