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
HTML nugget at home page only
HTML nugget at home page only
http://BrainKing.com - play 80+ popular board games for free, 30,000+ registered users
http://BrainKing.info - the official blog of the BrainKing game site
http://BrainKing.info - the official blog of the BrainKing game site
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: HTML nugget at home page only
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
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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Re: HTML nugget at home page only
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
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
http://BrainKing.com - play 80+ popular board games for free, 30,000+ registered users
http://BrainKing.info - the official blog of the BrainKing game site
http://BrainKing.info - the official blog of the BrainKing game site
-
Don Chambers
- Regular
- Posts: 3657
- Joined: Mon Feb 13, 2006 2:40 am
- Location: Chicago, IL, USA
- Contact:
Re: HTML nugget at home page only
Garvin - what is the difference between $view=='start' and $startpage=='true'?
=Don=
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: HTML nugget at home page only
Hi Don!

Regards,
Garvin
I'm note sure if there is anyDon Chambers wrote:Garvin - what is the difference between $view=='start' and $startpage=='true'?
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/