Page 1 of 1

HTML nugget at home page only

Posted: Mon Mar 16, 2009 11:15 am
by Fencer
Hello,

I would like to add a small HTML snippet to the bottom of my blog homepage. I have tried to use the "HTML Nugget on Page" plugin with "Bottom of the content" and "Overview page only" options and everything is fine except one detail - the nugget is displayed not only the homepage, but also at the "next page" pages (P2.html etc.).

Is it possible to show a nugget just on the home page and nowhere else?

Thanks,
Filip

Re: HTML nugget at home page only

Posted: Mon Mar 16, 2009 11:35 am
by garvinhicking
Hi!

Hm, actually for the plugin, the overview page is the same like its follow up pages...so I wouldn't know an easy way to change this. You might be able to edit your index.tpl template file and manually add the HTML snippet, and use some tricks Smarty-IF-Check like {if $view == 'start' AND $footer_currentPage < 2} - but that's a lot to handle.

What is inside your nugget that you don't want it on paginated pages?

Regards,
Garvin

Re: HTML nugget at home page only

Posted: Mon Mar 16, 2009 11:54 am
by Fencer
Hi Garvin,

Actually, it's not me but one of my customers who wants me to show his text advertisement at the home page only. Anyway, the Smarty solution is fine too and works perfectly. Thanks for your help.

Filip

Re: HTML nugget at home page only

Posted: Mon Mar 16, 2009 2:09 pm
by Don Chambers
Garvin - what is the difference between $view=='start' and $startpage=='true'?

Re: HTML nugget at home page only

Posted: Mon Mar 16, 2009 2:41 pm
by garvinhicking
Hi Don!
Don Chambers wrote:Garvin - what is the difference between $view=='start' and $startpage=='true'?
I'm note sure if there is any :)

Regards,
Garvin