1
orcano
adding news poster's name on news_block_new.html
  • 2004/4/3 20:25

  • orcano

  • Just popping in

  • Posts: 2

  • Since: 2004/4/3 1


This question may sound too easy to ask here,
but I am a 'big' beginner on xoops. help....

what I am trying to do is to add news poster's name in news list on top page. I have figured out that it needs to modify news_block_new.html template file, but nothing comes out after that.

I just do not understand how the XOOPS templates are like.

news_block_new.html is basically just as below right?
Quote:


    <{foreach item=news from=$block.stories}>
  • <{$news.title}> (<{$news.date}>)

  • <{/foreach}>


I tried to add news poster's name, so I added some words that could happen to work,
such as
Quote:
{$news.poster} , {$block.poster} after $news.date

it just does not work

2
Mithrandir
Re: adding news poster's name on news_block_new.html

This is implemented and will be in the next version of News module (soooon...)

Always, when modifying templates, update the module afterwards, so the templates are recompiled and written to database

3
orcano
thanks
  • 2004/4/3 21:14

  • orcano

  • Just popping in

  • Posts: 2

  • Since: 2004/4/3 1


thanks, helpful advise for beginners like me.

Login

Who's Online

308 user(s) are online (196 user(s) are browsing Support Forums)


Members: 0


Guests: 308


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