Product Page - Using different template

  • Posts: 57
  • Thank you received: 0
12 years 7 months ago #48324

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.

  • Posts: 82868
  • Thank you received: 13378
  • MODERATOR
12 years 7 months ago #48382

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.

  • Posts: 57
  • Thank you received: 0
12 years 6 months ago #48768

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.

  • Posts: 28
  • Thank you received: 0
9 years 4 days ago #221618

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.

  • Posts: 82868
  • Thank you received: 13378
  • MODERATOR
9 years 4 days ago #221624

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.

  • Posts: 28
  • Thank you received: 0
9 years 3 days ago #221795

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