How would I output the title of an entry in ExpressionEngine and display it in the browser\'s title bar?
Here is the content of my page\'s header:
&l
If you want to show just the name of your ExpressionEngine site (as defined in CP Home > Admin > General Configuration) use the site name global variable:
If you want to display just the current entry title from a given channel use the following:
{exp:channel:entries channel="channel_name" limit="1" dynamic="yes"}
{title}
{/exp:weblog:entries}
Many Web Developers will use an Embed Variable with an Embedded Template to pass the `{entry_title} to a global embed template, allowing for a dynamic page title:
{embed="includes/header" title="{exp:channel:entries channel="{channel_name}"}{title}{/exp:channel:entries}"}
If you're using EE2, the SEO Lite Module takes care of all the hard work for you with a single line of code:
{exp:seo_lite url_title="{url_title}"}
Other solutions include the Low Title Plugin (EE1, EE2).