1
Jonnoj
News on front page.
  • 2004/11/2 3:34

  • Jonnoj

  • Just popping in

  • Posts: 8

  • Since: 2004/9/15


I'm trying to find a way to get my news to show up on the front page of my website and also in the news section. Right now I am making custom blocks everytime I have some news that I want on the top page. What I am looking to do is make a center block that will show up the 5 most recent news articles, but not just the links to them I want all the text/images there also. Check out my site at http://www.wowcot.uni.cc at the bottom of the page where it says recent news. If anyone could please help me edit the code so it would show the text of the article also I would greatly appreciate it. Btw here is what the code looks like as of now...
<{foreach item=news from=$block.stories}>
<
div class="item">
  <
div class="itemHead"><span class="itemTitle">
     <
a href="<{$xoops_url}>/modules/news/article.php?storyid=<{$news.id}>"><{$news.title}>a>
  span>div>
  <
div class="itemInfo">
    <
span class="itemPostDate"><{$news.date}>span> (<span class="itemStats"><{$news.hits}> readsspan>)
  div>
  <
div class="itemBody">
    <{
$story.imglink}>
    <
class="itemText"><{$news.text}>p>
  div>
  <
div class="itemFoot"><span class="itemPermaLink">
    <
a href="<{$xoops_url}>/modules/news/article.php?storyid=<{$news.id}>"><{$news.readmore}><{$news.comments}>a>
  span>div>div><br />
<{/foreach}>
<
hr>
<
div style="text-align: right; margin: 10px;"><b><i><a href="<{$xoops_url}>/modules/news/">[Read More News]a>i>b>div>

2
tim1980
Re: News on front page.
  • 2004/11/20 5:07

  • tim1980

  • Not too shy to talk

  • Posts: 114

  • Since: 2004/11/5


So did you ever get this working the way you want?

If so can I have the code please?

3
hervet
Re: News on front page.
  • 2004/11/20 7:53

  • hervet

  • Friend of XOOPS

  • Posts: 2267

  • Since: 2003/11/4


Hi,

Have you tryied the spotlight module ?

Bye,
Hervé

4
tim1980
Re: News on front page.
  • 2004/11/21 3:52

  • tim1980

  • Not too shy to talk

  • Posts: 114

  • Since: 2004/11/5


Yep, that did the trick for me.

Thanks.

Login

Who's Online

314 user(s) are online (270 user(s) are browsing Support Forums)


Members: 0


Guests: 314


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits