1
london
News Module
  • 2005/6/9 14:50

  • london

  • Just popping in

  • Posts: 23

  • Since: 2005/6/8 2


Hi,

Could you please let me know what are the Smarty templates variables for the news module ($news.title works but $news.hometext doesn't and that's the name of the field been used in the database).

Thanks,
Jason

2
Mithrandir
Re: News Module

1. Don't double-post. You'll only spread the replies and annoy people who find out that others have replied, after they have replied themselves.

2. Smarty variables are "assigned" to smarty - and sometimes only the most needed variables are assigned, which is why the title is there but not hometext.

So it depends on the page/block you are loading, which variables are available and how to add more.

3
McNaz
Re: News Module
  • 2005/6/9 15:01

  • McNaz

  • Just can't stay away

  • Posts: 574

  • Since: 2003/4/21


Your best best is going through the module/news/template/*.html files to see what smarty $new variables are used by the news module.*/

4
london
Re: News Module
  • 2005/6/9 18:11

  • london

  • Just popping in

  • Posts: 23

  • Since: 2005/6/8 2


ok, that makes sense. But, what is the procedure for adding new variables then?

5
london
Re: News Module
  • 2005/6/10 17:07

  • london

  • Just popping in

  • Posts: 23

  • Since: 2005/6/8 2


ok, that sounds right. How do you add more variables then? Is there some documentation on it?

Thanks.