Page 1 of 1
Adding HEAD and TITLE info to just the main page
Posted: Wed Aug 23, 2006 4:05 pm
by technician
I'm working on adding a small bit of information to the header for an ROR sitemap along with a different title for the main page (rather that just the blog name). I went in and edited index.tpl however my changes (which look perfect on the main page) are now spread across every blog page. Is there anyway I can just have the changes for the index page instead of all the rest of them?
Re: Adding HEAD and TITLE info to just the main page
Posted: Wed Aug 23, 2006 4:14 pm
by garvinhicking
Hi!
For that you would need to check one of the smarty variables, like {$is_startpage} or {if $view == 'start}, and then conditionally print your meta information there.
A reference of smarty variables can be found in the technical docs on
www.s9y.org.
HTH,
Garvin
Posted: Wed Aug 23, 2006 4:24 pm
by technician
Wow, quick reply!
I'm heading out on a trip but I will take a look at the variables when I get back this afternoon. Thanks!
Posted: Thu Aug 24, 2006 1:30 am
by technician
Worked like a charm Garvin!
Serendipity continues to impress. Many thanks for your efforts!
Posted: Thu Aug 24, 2006 11:45 am
by garvinhicking
Hi!
Great to hear that. You're warmly welcome. If in the future you might have more questions or want to contribute any plugins or so, please come back here.
Best regards,
Garvin