Skip to main content

Display module title + template override

More
12 years 6 months ago #148920 by Thrane
-- url of the page with the problem -- : mermaid.thrane.nu/en/
-- HikaShop version -- : 2.3.0
-- Joomla version -- : 3.2.1
-- PHP version -- : 5.4
-- Browser(s) name and version -- : Firefox
-- Error-message(debug-mod must be tuned on) -- :

Hi...
On my site I have insert an Latest Products module on the frontpage, but the title of the module isn't showing?

And how do I override the layout of that excact module in HikaShop with template override without overiding other stuff?

Thanks!

/Thomas

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

More
12 years 6 months ago #148932 by nicolas
Hi,

The title of the module is displayed by your template if the "show title" option of your module is turned on and that the style of the position where you put your module handle the module title display (that's something to see with your template provider).

The products listings modules and menus all use the same views. So when you override the products listing view file, it will be for all of them. So you would have to add a check on your changes so that they apply only if you are displaying the listing in that particular module:
Code:
if($this->params->get('id')==XXX){ //custom code for the module with the id XXX }
The following user(s) said Thank You: Thrane

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

More
12 years 6 months ago #149043 by Thrane
Thanks, will give it a try regarding the override!

BTW. great hearing about HikaShop at Joomla!Day Denmark... That's the reason I went for your shop :-)

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

More
12 years 6 months ago #149046 by Thrane
Found the right file to override (products > listing_div.php), but I can't seem to find where to change something about the image.
Seems that the file i calling "div_item_layout_type", but where is that? :-)

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

More
12 years 6 months ago #149075 by Xavier
Hi,

The view to edit depend on the configuration you made in your module / menu.
By default the view used for the products listings is "listing_img_title" so you have to edit it via the menu Display > Views.
Or edit another one according to your settings.

Hope this will help you.

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

More
12 years 6 months ago #149158 by Thrane
Thanks!
I think I'm getting the point of the system:
mermaid.thrane.nu/en/

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

Time to create page: 0.215 seconds
Powered by Kunena Forum