Page 1 of 1

Links not evaluating in Listit2 Module

Posted: Wed Jul 04, 2012 10:54 am
by urbanbindi
For some reason a cms_selflink will not create the correct link in the browser and instead creates this instead:
mydomain/{cms_selflink href='solutions'}
I am using cmsms 1.10.3 and the problem only occurs when using the Listit2 module.

The HTML for the link inside the WYSIWYG is:

Code: Select all

<a href="{cms_selflink href='solutions'}">Solutions</a>
Which I know is correct, therefore it has something to do with the summary template I am using.

This is the summary template:

Code: Select all

{if $pagecount > 1}
<p>
{if $pagenumber > 1}
{$firstpage}&nbsp;{$prevpage}
{/if}
{if $pagenumber < $pagecount}
&nbsp;{$nextpage}&nbsp;{$lastpage}
{/if}
</p>
{/if}

{foreach from=$items item=item}
<div class="grid_12">
<h2 class="item-title">{$item->title|cms_escape}</h2>
<div class="item-category">Category: {$item->category_name|cms_escape}</div>
{if !empty($item->fielddefs)}
    <div class="item-properties">
    {foreach from=$item->fielddefs item=fielddef}
      {if $fielddef.type == 'upload_file' || $fielddef.type == 'select_file'}
           <div class="caseStudyPic"><img src="{$uploads_url}/{$fielddef.value|cms_escape}"><br /></div>
        {else}
            <div class="caseStudyText">{$fielddef.value}<br /></div>
        {/if}
    {/foreach}
</div>
{/if}

</div><!-- item -->
{/foreach}

Re: Links not evaluating in Listit2 Module

Posted: Wed Jul 04, 2012 7:46 pm
by uniqu3
You need eval http://www.smarty.net/docsv2/en/languag ... n.eval.tpl
Look in News Module for example.