- Posts: 366
- Thank you received: 26
Display module title + template override
12 years 6 months ago #148920
by Thrane
Display module title + template override was created 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
-- 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.
12 years 6 months ago #148932
by nicolas
Replied by nicolas on topic Display module title + template override
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:
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.
12 years 6 months ago #149043
by Thrane
Replied by Thrane on topic Display module title + template override
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
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.
12 years 6 months ago #149046
by Thrane
Replied by Thrane on topic Display module title + template override
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?
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.
12 years 6 months ago #149075
by Xavier
Replied by Xavier on topic Display module title + template override
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.
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.
12 years 6 months ago #149158
by Thrane
Replied by Thrane on topic Display module title + template override
Please Log in or Create an account to join the conversation.
Time to create page: 0.215 seconds