Page 1 of 1

adding code to entries

Posted: Thu Mar 09, 2006 5:59 pm
by kalbzayn
I'm trying to add the adsense code to run inside the entries instead of at the header, footer, sidebar, etc.

I was able to edit the entries.tpl file to get the ads to show up exactly how I wanted when viewing the entries. But, when I clicked on a category and got a list of all the entries for that category, the ads were showing up there too. Is there a way to only have the special code show up inside the entry, but only when the individual entry itself is being viewed?

Thanks
Mike

Re: adding code to entries

Posted: Thu Mar 09, 2006 8:25 pm
by garvinhicking
Yes, you can check the

Code: Select all

{if $is_single_entry}
Variable for that.

Best regards,
Garvin

Posted: Thu Mar 09, 2006 9:46 pm
by kalbzayn
Thanks. I'll give that a try and let you know how it goes in a day or two.

Posted: Fri Mar 10, 2006 6:37 pm
by kalbzayn
Thanks for you help.

It worked like a charm.