1
Hi my helpful friends,
I was using on my site as a start page the news modules when i lately discovered that whatever i would add to be displayed in the start page, would be displayed at the news pages also (probably cause i have set news as the start page).
I used then spotlight but the "other news" option that it has, doesn't fills me cause it's different from the news layout.
So i came to the conclusion to make a module on my own so I can display the latest news on frontpage without specifying news as start page.
For my module, i made the /template/blocks/all_news.htm look like this:
<table cellpadding="0" cellspacing="0" class="item">
<tr>
<td>
<table cellpadding="0" cellspacing="0" width="98%">
<tbody>
<tr>
<td class="itemHead">
<span class="itemTitle"><{$story.title}>span>
td>
tr>
<tr>
<td class="itemInfo">
<{if $story.poster != ''}><span class="itemPoster"><{$lang_postedby}> <{$story.poster}>span><{/if}>
<span class="itemPostDate"><{$lang_on}> <{$story.posttime}>span> (<span class="itemStats"><{$story.hits}> <{$lang_reads}>span>)
td>
tr>
<tr>
<td><div class="itemBody">
<{$story.imglink}>
<p class="itemText"><{$story.text}>p>
div>
td>
tr>
<tr>
<td class="itemFoot">
<span class="itemAdminLink"><{$story.adminlink}>span>
<span class="itemPermaLink"><{$story.morelink}>span>
td>
tr>
tbody>
table>
td>
tr>
table>
Now I need the blocks/all_news.php code so it could read the values for the above template to be shown correctly. I have searched the news2 module but I cannot find a way through the code. I only need the part which news2 module reads the latest news to be displayed on index (start page).
This will help a lot people I think.
Thank you.