1
I add the following code to the news_item.html template, but it won't compile when I refresh the news module.
Can any help modify this code for me so it will compile?
<td>
<{
$thistopic = $this->_tpl_vars['story']['title'] ;
list($ntopic, $nstory) = explode(" : ", $thistopic);
$str = substr($ntopic,-8);
$str = substr($str,0,4);
}>
<{if ($str == "Poem"):}>
<td>
<br><b>Hello..Worldb>
td>
<{/if}>
td>
mouacy