[Solved] Pass Listit2 detailed URL to CMSMS template

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
KayakMan
Forum Members
Forum Members
Posts: 19
Joined: Thu Mar 12, 2015 1:49 pm

[Solved] Pass Listit2 detailed URL to CMSMS template

Post by KayakMan »

Hey

In the listit2 the summary template, links to the detailed page are called by {$item->url}

In the detailed template, I'm trying to pass {$item->url} to a variable and then in to the main CMSMS template for SEO.

{$item->url} seems to has no value in the detailed template.

How do I past the detailed url to the main cmsms template??

I also trying to construct the url to pass from the detailed template, like so:
{assign var="product_url" value="{root_url}/products/{$item->alias}/{$item->item_id}"}

But {$item->item_id} is giving a value of 1 where it should be say 59.

Any ideas... I've trawled the forum.
Last edited by KayakMan on Mon May 25, 2015 2:10 pm, edited 1 time in total.
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3484
Joined: Mon Nov 28, 2011 9:29 am
Location: The Netherlands

Re: Pass Listit2 detailed URL to CMSMS template

Post by velden »

Last parameter isn't the item id but the id of the page where the details should be displayed.

Consider installing CGSimpleSmarty module and use

Code: Select all

{cgsimple::self_url()}
KayakMan
Forum Members
Forum Members
Posts: 19
Joined: Thu Mar 12, 2015 1:49 pm

Re: Pass Listit2 detailed URL to CMSMS template

Post by KayakMan »

Thanks velden!

I'll give that a try.
KayakMan
Forum Members
Forum Members
Posts: 19
Joined: Thu Mar 12, 2015 1:49 pm

Re: Pass Listit2 detailed URL to CMSMS template

Post by KayakMan »

velden, you're the man/woman! worked a treat. Cheers!!
Post Reply

Return to “Modules/Add-Ons”