1
Yero
Adding a banner IN the news module
  • 2005/1/1 20:43

  • Yero

  • Just popping in

  • Posts: 24

  • Since: 2002/10/1


Hi,

I'm trying to find out how I can add some javascript code (a random banner/text) at the bottom of each news page. So, in between laatst paragraph and the comments.

First I thought I had to add that in theme.php, but that works for all pages and not only news. (I have added some code to the footer though, but that's not what I want here)
So, logically, it needs to be edited in a file in the news module. But which file?

Article.php? I can't see a lot of HTML in there, so I suppose adding some HTML/Javascript codes here wouldn't work?

Then I tought of news_article.html in the templates map in the news module. I added some code there, but nothing happends.

Can anyone give me a hint if I'm working in the right direction?

2
Mithrandir
Re: Adding a banner IN the news module

When you change template files, you will need to update the module in System Admin -> Modules for the changes to take effect.

3
Yero
Re: Adding a banner IN the news module
  • 2005/1/1 22:56

  • Yero

  • Just popping in

  • Posts: 24

  • Since: 2002/10/1


It worked! Thanks!

4
Mithrandir
Re: Adding a banner IN the news module

Happy to be of help - thank you for reporting back that it worked.

Login

Who's Online

342 user(s) are online (58 user(s) are browsing Support Forums)


Members: 0


Guests: 342


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