Page 1 of 1

[Solved] Pass Listit2 detailed URL to CMSMS template

Posted: Thu May 21, 2015 7:42 pm
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.

Re: Pass Listit2 detailed URL to CMSMS template

Posted: Thu May 21, 2015 8:09 pm
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()}

Re: Pass Listit2 detailed URL to CMSMS template

Posted: Fri May 22, 2015 11:43 am
by KayakMan
Thanks velden!

I'll give that a try.

Re: Pass Listit2 detailed URL to CMSMS template

Posted: Fri May 22, 2015 11:48 am
by KayakMan
velden, you're the man/woman! worked a treat. Cheers!!