Page 1 of 1

[Solved] Content Pages in Listit2

Posted: Sun Sep 02, 2012 2:11 am
by carasmo
I REALLLLLLY love Listit2. I'm wondering how the Content Pages work. All I can see it returns is the page id, can it be used to spit out the link to a page, and if so, how?

Thanks!

Re: Content Pages in Listit2

Posted: Sun Sep 02, 2012 9:32 am
by uniqu3
In your template:

Code: Select all

{if !empty($item->fielddefs.alias_of_field.value)}{cms_selflink page=$item->fielddefs.alias_of_field.value}{/if}

Re: Content Pages in Listit2

Posted: Sun Sep 02, 2012 4:12 pm
by carasmo
THANK YOU!!!!!!!

Re: [Solved] Content Pages in Listit2

Posted: Tue Apr 23, 2013 6:05 am
by pedes
ok this gives me a link ... but how to use this over an image
like gives me just the content id, but not the url, i would like to see the url:

Code: Select all

<a href="{$item->fielddefs.contentpage.value|cms_escape}" title="">
    <img src="{$uploads_url}/images/product/{$item->fielddefs.product_image.value|cms_escape}" alt="" /></a>
someone ?

Thks,
Peter