Set the Page Title

You can set the web page title in the browser numerous methods. The first method is to give your project a site name. This is usually the company name, site name or project name. You can set this in the projectName property of the Link Manager class:

	<managers:LinkManager projectName="ACME Inc.">
</managers:LinkManager>

If the project name is set it is displayed on every page. You can also be more specific and set the page title. You can do that per state or per hyperlink. To set a page title for the state you are on use the following code:

	<managers:LinkManager projectName="ACME Inc.">
<managers:stateOptions>
<vo:StateOption stateName="about" displayName="About"/>
<vo:StateOption stateName="contact" displayName="Contact Us"/>
<vo:StateOption stateName="products" displayName="Our Products"/>
<vo:StateOption stateName="services" displayName="Our Services"/>
</managers:stateOptions>
</managers:LinkManager>

In the stateName we enter the name of the state. The displayName is what we will see in the browser title bar. For example, with the code above, on the contact state the browser title will be, "Acme Inc. - Contact Us".

You can switch the order from "Project Name - Page Name" to "Page Name - Project Name" by setting the isTitleBeforeProjectName to true as shown below.

	<managers:LinkManager projectName="ACME Inc." isTitleBeforeProjectName="true">
<managers:stateOptions>
<vo:StateOption stateName="about" displayName="About"/>
<vo:StateOption stateName="contact" displayName="Contact Us"/>
<vo:StateOption stateName="products" displayName="Our Products"/>
<vo:StateOption stateName="services" displayName="Our Services"/>
</managers:stateOptions>
</managers:LinkManager>