- Posts: 9
- Thank you received: 0
Why don't the category names show?
15 years 9 months ago #2416
by Chris
Why don't the category names show? was created by Chris
I have followed the tutorial on how to display categories and products, and I managed to set up a display of categories with a module. When I compare my front-end with that of the HikaShop demo, the behaviour is the same, except for one thing: On the demo site, when clicking on a category on the Category of Products on the left, that category's page is displayed, with the name of the category at the top of the page. In my case, however, whichever category I click on, the name of the module is always displayed at the top of the page, and not the name of the category. Where does one change this?
Please Log in or Create an account to join the conversation.
15 years 9 months ago #2418
by nicolas
Replied by nicolas on topic Re: Why don't the category names show?
In the module options, you must have select a menu in the option "menu". For that menu, if you go to the joomla options of the menu, under "advanced parameters" on the right you have the option "show title page" which must be activated.
Also you might need to toggle the option "Use menu name instead of category name for the title" in the HikaShop options of the menu.
Also you might need to toggle the option "Use menu name instead of category name for the title" in the HikaShop options of the menu.
Please Log in or Create an account to join the conversation.
15 years 9 months ago #2427
by Chris
Replied by Chris on topic Re: Why don't the category names show?
I tried to change a few things, but it still doesn't work. The menu item is a 'Categories listing' type, which I assume is correct? The Joomla menu options for this item do not have 'Advanced parameters' - only 'Parameters (Basic)' and 'Parameters (System)'.
Please Log in or Create an account to join the conversation.
15 years 9 months ago #2430
by nicolas
Replied by nicolas on topic Re: Why don't the category names show?
Yes, in parameters (system) you should have that 'show page title' option. Toggling it and the other option 'Use menu name instead of category name for the title' did not solve the problem ?
Anyway, If you want to solve this directly, you can go to Display->Views search for the file listing of the view product and you can add the code
to display the title the way you want. And then toggle off the title option in the menus and the modules so that only yours is displayed.
Anyway, If you want to solve this directly, you can go to Display->Views search for the file listing of the view product and you can add the code
Code:
echo $this->element->category_name;
Please Log in or Create an account to join the conversation.
15 years 9 months ago #2469
by Chris
Replied by Chris on topic Re: Why don't the category names show?
Thanks.
Where exactly do I add the code?
echo $this->element->category_name;
Where exactly do I add the code?
echo $this->element->category_name;
Please Log in or Create an account to join the conversation.
15 years 9 months ago #2470
by nicolas
Replied by nicolas on topic Re: Why don't the category names show?
You can replace the code
echo $name;
by this one
echo $name;
by this one
Please Log in or Create an account to join the conversation.
15 years 9 months ago #2485
by Chris
Replied by Chris on topic Re: Why don't the category names show?
Thanks for all your trouble, Nicolas.
I have tried everything you suggested, but it still doesn't work. I'll leave it as it is.
I have tried everything you suggested, but it still doesn't work. I'll leave it as it is.
Please Log in or Create an account to join the conversation.
Time to create page: 0.236 seconds