Display module title + template override

  • Posts: 359
  • Thank you received: 24
  • Hikaserial Standard Hikashop Business
11 years 5 months ago #148920

-- 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.

  • Posts: 84290
  • Thank you received: 13691
  • MODERATOR
11 years 5 months ago #148932

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:

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.

  • Posts: 359
  • Thank you received: 24
  • Hikaserial Standard Hikashop Business
11 years 5 months ago #149043

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.

  • Posts: 359
  • Thank you received: 24
  • Hikaserial Standard Hikashop Business
11 years 5 months ago #149046

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.

  • Posts: 13201
  • Thank you received: 2322
11 years 5 months ago #149075

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.

  • Posts: 359
  • Thank you received: 24
  • Hikaserial Standard Hikashop Business
11 years 5 months ago #149158

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.067 seconds
Powered by Kunena Forum