You need to sign in to do that
Don't have an account?
studebaker
Browser page title not showing
My VF Sites application is working fairly well now but there is one nagging detail - the title attribute on the apex:page tag does not seem to flow into the browser.
<apex:page controller="SitesSearchCustomController" action="{!init}" showHeader="false" sidebar="false" title="Foo">
results in a browser page that looks like this (note - no title appears)
or (Chrome):
or IE7:
What am I doing wrong?
Eric
Eric,
you have the showHeader attribute set to false. In this case you need to insert your title tag:
<head><title>my page title</title></head>
All Answers
Eric,
you have the showHeader attribute set to false. In this case you need to insert your title tag:
<head><title>my page title</title></head>
Bulent - this worked! Please add to the documentation for the apex: page component with respect to the title attribute.
Eric
Bulent -
When using a Site Template I often need to specify <head></head> elements in both the template and the page ... and the source for the page ends up with two <head></head> sections ... as well as two <doctype....> tags.
How does the Sites server merge html elements for pages when using a site template and are there any recommendations on how to keep the resulting html output clean?
Thanks,
Ron