1
benlau
How to write a template that show all the recently news using news_item.html style
  • 2004/4/20 16:00

  • benlau

  • Just popping in

  • Posts: 29

  • Since: 2004/3/7 1


Hi all,

I want to write a template that can show all the recently
news for all topics in the top pages. Refer to news_index.html:


<{section name=i loop=$stories}>
<{include file="db:news_item.html" story=$stories[i]}>


<{/section}>


I think i can modify the codes. However , I have no idea that what should be changed... could somebody give me hints on it? I have tried to find document to talk about it... but nothing found..

thx!!!!!!!!!!!!!!!!!



2
benlau
Re: How to write a template that show all the recently news using news_item.html style
  • 2004/4/20 16:02

  • benlau

  • Just popping in

  • Posts: 29

  • Since: 2004/3/7 1


I am sorry that i post a wrong group...

3
studioC
Re: How to write a template that show all the recently news using news_item.html style
  • 2004/4/20 16:06

  • studioC

  • Friend of XOOPS

  • Posts: 922

  • Since: 2003/12/7


hello benlau, ..

perhaps i don't understand correct... why not using news as startmodul in admin -> preferences ? It will show last news of all topics and you can set number of displayed news in admin .. Why to edit templates for this ?

michael

4
benlau
Re: How to write a template that show all the recently news using news_item.html style
  • 2004/4/20 16:17

  • benlau

  • Just popping in

  • Posts: 29

  • Since: 2004/3/7 1


hahahahha!! thx!!!!!!!!!

In fact... i don't want to write that template. I just want to display the news in the frontpage. I have tried to ask how to do it in another forum... but no one reply. Therefore , I tried to write the template by myself..

Login

Who's Online

318 user(s) are online (97 user(s) are browsing Support Forums)


Members: 0


Guests: 318


more...

Donat-O-Meter

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

Latest GitHub Commits