Adding HEAD and TITLE info to just the main page

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
technician
Regular
Posts: 8
Joined: Wed Aug 23, 2006 4:00 pm

Adding HEAD and TITLE info to just the main page

Post 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?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Adding HEAD and TITLE info to just the main page

Post 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
# 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/
technician
Regular
Posts: 8
Joined: Wed Aug 23, 2006 4:00 pm

Post 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!
technician
Regular
Posts: 8
Joined: Wed Aug 23, 2006 4:00 pm

Post by technician »

Worked like a charm Garvin!

Serendipity continues to impress. Many thanks for your efforts!
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# 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/
Post Reply