• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Spain CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Products detailpage template not working
PostPosted: Sat Nov 02, 2019 10:18 am 
Offline
Forum Members
Forum Members

Joined: Fri Oct 05, 2012 7:59 am
Posts: 33
Hi,

I'm having the same problem as described here. I got excited when finally the solution showed in the last post, but for some reason it was edited out. I can't respond to that post anymore. So here's a new one.

Original post:
viewtopic.php?f=28&t=78690

Long story short: I want various detailpages for various categories of products. It seems that if you state: {products detailpage="foo"} it just doesnt listen to that and goes to the default page, or itself if no default is set.

The question is: how can I solve that? Thanks in advance!

Also, I redirected to another page by making it the default page in the products module, to see if I could change detailtemplate on that page giving a module_hint as Calguy suggested in the original threat, but that didn't work either. Yes, I checked, and I was on the actual page.

Using CMSMS 2.2.12 and product 2.28.7


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: Products detailpage template not working
PostPosted: Sun Nov 03, 2019 10:15 am 
Offline
Forum Members
Forum Members

Joined: Fri Oct 05, 2012 7:59 am
Posts: 33
ok, resolved this with a bit of smarty:

{if $smarty.server.HTTP_REFERER|strstr:'Bread'}
{cms_module_hint module='Products' detailtemplate='Products Detail View bread'}
{else}
{cms_module_hint module='Products' detailtemplate='Products Detail View buns'}
{/if}

with this solution you can even use Pretty URL's.


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: DIGI3, googlebot


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Hosting Nation - Managed CMSMS Hosting