<{$block.items[i].content:encoded}> Throwing error
List posts in the topic
<{$block.items[i].content:encoded}> Throwing error
msg# 1
I've upgraded from 3.02 (xoops version 2.2.4) to 3.07 (xoops version 2.0.15) - but the templates from 3.02 are not working with 3.07 - in particular the content:encoded tag is crashing Smarty_Compiler - see below.
----------------------
This page cannot be displayed due to an internal error.
You can provide the following information to the administrators of this site to help them solve the problem:
Error: Smarty error: [in db:xhld_block_mixed.html line 8]: syntax error: unrecognized tag: $block.items[i].content:encoded (Smarty_Compiler.class.php, line 436)
---------------------------
I'm trying to use this template (works on 3.02):
<script type="text/javascript" src="<{$block.mod_url}>/phpdate.js"></script>
<ul>
<{section name=i loop=$block.items max=$block.maxitem}>
<{if $block.items[i].title != ""}>
<li>
<a href="<{$block.items[i].link}>" target="_blank"><{$block.items[i].title}></a>
<br>
<{$block.items[i].content:encoded}></a>
</li>
<{/if}>
<{/section}>
</ul>
Any way around this? This template shows only title and the encoded content of the RSS - very useful.
Thanks.
Votes:13
Average:10.00
Posts tree