I have a site, using EE 1.73, set up with various weblogs and am trying to pass the correct info to the html <title> tag.
I have added the following to the <head> tag -
{if segment_3}
<title>{site_name} | {exp:weblog:entries weblog="features|reviews|tutorials|catchreports|news|species|rigs|videos" limit="1" disable="categories|custom_fields|member_data|pagination|trackbacks"
}{weblog} | {title}{/exp:weblog:entries}</title>
{if:else}
<title>{site_name}</title>
{/if}
And this correctly give the title for the home page as - <title>Planet Sea Fishing Digital Magazine</title>
The actual article title is fine too with http://www.planetseafishing.com/reviews/read/the-reel-service-centre/ being rendered correctly as <title>Planet Sea Fishing Digital Magazine | Reviews | The Reel Service Centre</title>
My problem, as a beginner, is that I can’t figure out how to get the page title for the actual weblog to render correctly ie for http://www.planetseafishing.com/reviews/ to show as <title>Planet Sea Fishing Digital Magazine | Reviews</title>
I presume that it has something to do with using the fact that segment_3 is blank in this case but no matter what I try I can’t get the title to render properly.
Any suggestions?
Thanks
David