Links not evaluating in Listit2 Module

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
urbanbindi
Forum Members
Forum Members
Posts: 38
Joined: Sat Jan 10, 2009 5:12 pm

Links not evaluating in Listit2 Module

Post 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}
uniqu3

Re: Links not evaluating in Listit2 Module

Post by uniqu3 »

You need eval http://www.smarty.net/docsv2/en/languag ... n.eval.tpl
Look in News Module for example.
Post Reply

Return to “The Lounge”