1
kalamata
News Module
  • 2005/6/8 22:56

  • kalamata

  • Not too shy to talk

  • Posts: 121

  • Since: 2005/3/3 1


Dear All,

Not sure whether this is the right forum or the modules forum would be more appropriate, but since the news module is included in the core XOOPS version, I thought I would try this one.

I am a bit puzzled with the template about Recent News. What I want it to do is display the introductory text as well - or even better a set number of lines from every story.

I started workion on the news_block_new.html template file as I think it is the right one; that's where I start having problems. I noticed the code and thought that by adding a line at the end saying

<{$news.hometext}>

(as hometext is the field in the database holding the introductory text) everything would be fine. It doesn't work though:(

Could somebody shed some light into this?

Also, it would be helpful if we could have some explanation about how the database fields map to Smarty variables as this would allow for easy manipulation of the templates.

Thanks,
George

2
hervet
Re: News Module
  • 2005/6/12 12:42

  • hervet

  • Friend of XOOPS

  • Posts: 2267

  • Since: 2003/11/4


Hi,

what version of the module are you using ?

Bye,
Hervé

3
kalamata
Re: News Module
  • 2005/6/12 22:40

  • kalamata

  • Not too shy to talk

  • Posts: 121

  • Since: 2005/3/3 1


I am using the first version (version 1.1). Any advice would be really helpful.

4
kalamata
Re: News Module
  • 2005/6/13 19:19

  • kalamata

  • Not too shy to talk

  • Posts: 121

  • Since: 2005/3/3 1


Did a bit of research and found out that the block using news_block_top.html as its template is news_top.php.

I looked in there for $xoopstpl->assign statements, but there were none. There were a few in article.php , but none of them related to the date or the title of the story.

Basically, I want to add an assign statement - pressumably it would need to be done in news_top.php - so that the introductory text (bodytext in the database) is included on the page as well.

Any help would be valuable.

Thanks,
George

Login

Who's Online

461 user(s) are online (39 user(s) are browsing Support Forums)


Members: 0


Guests: 461


more...

Donat-O-Meter

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

Latest GitHub Commits