Skip to main content

Product Page - Using different template

14 years 6 months ago #48324 by rockstaran
I would like to know, how can I use a different template in the product page from the template used on the overall site.
For example, my home page has a product list, thumbnail (image/title), when user clicks it takes them to the products page. I want this page to be completely blank with only the products information (no header/footer/etc..). Any Suggestions?

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

14 years 6 months ago #48382 by nicolas
You will have to edit the file "listing_img_title" of the view "product" via the menu Display->Views and add :
&tmpl=component

in the URL link which is set at the beginning of the file.
The following user(s) said Thank You: rockstaran

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

14 years 6 months ago #48768 by rockstaran
Thank you,
I solved it differently (more involved), since I had a deadline on friday.
I added code (in the index.php of the template) so that if the querystring reads pop=1, it will show an empty template (no header or footer, and no borders, etc..), so when pop-1 in the querystring, I load certain css which overrides the css of the template. worked perfectly. Thank You, will use your solution next time.

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

10 years 11 months ago #221618 by AntinJH
Hi,

I tried this technique whitch works. But is it possible to set a joomla template instead of the "component template" ?

Thanks !

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

10 years 11 months ago #221624 by nicolas
Hi,

Joomla doesn't have by default a system in place to switch the template for different pages of the same menu item (which is what you want).
For that, you'll need to use another extension like these:
extensions.joomla.org/extensions/extensi...templating/chameleon
extensions.joomla.org/extensions/extensi...ced-template-manager

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

10 years 11 months ago #221795 by AntinJH
Thanks a lot, I'll try this !

Have a nice day.

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

Time to create page: 0.048 seconds
Powered by Kunena Forum