Hi - Also looking to send blog title to <title> of page. Have seen you’ve pointed several people in right direction on this. Have been through the steps outlined above. EE version 2.2.2
Here’s what i have in my single entry template. (The html tag is inside global variable ‘header1’)
{preload_replace:blog_title="Comments"}
{preload_replace:my_template_group="site"}
{exp:channel:entries limit="1"}
{header1}
{embed="{my_template_group}/header-title"}
{header2}
<h2 class="title">{title}</h2>
{embed="{my_template_group}/header-title" my_page_title="{title}"}
{body}
{/exp:channel:entries}
The contents of the included ‘header-title’ template is:
<title>{sitetitle}: {embed:my_page_title}</title>
Result in title is just: “Sitetitle text: “
However the result of the code
{embed="{my_template_group}/header-title" my_page_title="{title}"}
outputs the <title> text i want, including the title tags, but in the wrong place. Like pitcher and catcher are wrong way round.
Also tried
my_page_title="{Test Title}"}
But not displayed in <title>