10
Hi all,
I needed a block whick displayed my recent news with the first part of the article instead of only the title and the date. So i tried to create a custom block copying the code from the original one and adding some lines
the new code is like that
<ul>
<{foreach item=news from=$block.stories}>
<li><a
href="<{$xoops_url}>/modules/news/article.php?storyid=<{$news.id}>"><{$news.title}></a>
(<{$news.date}>)<BR>
<{$story.text}>
</li>
<{/foreach}>
</ul>
I just added a
<BR>
to have a carriage return between the title and the article, and
<{$story.text}>
to display the first part of the text
It doesn't work (cause I'm very bad
). I tried to format it as a Script php, as HTML, and auto without smilies.
The only result is to see the code i wrote, exactly repeated in the block.
Can anione help me? The task is to have a righ-side block looking like "news-flash"
Thank you and sorry my english
Simone