I am using the new template engine.
As default the title tag is the page name or what is specified as titel in the backend.
How can I add a extra standard text such as the company name that allways will be shown at the end of the title e.g. "This is a page title - Company name"?
Thanks
Developer forum
E-mail notifications
Modify title tag
Posted on 01/07/2010 11:27:49
Replies
Nicolai Høeg Pedersen
Posted on 01/07/2010 12:29:13
You can do that from code.
Use the Dynamicweb.Notifications.Standard.Page.OnOutput notification and set pageview.current.meta.title = pageview.current.title & " - companyname".
http://engage.dynamicweb-cms.com/api/extensibility/Dynamicweb~Dynamicweb.Notifications.Standard+Page~OnOutput.html
But you really do not want to do that - that is NOT good for search engine optimized pages. They will perform better if you do not add the company name.
Use the Dynamicweb.Notifications.Standard.Page.OnOutput notification and set pageview.current.meta.title = pageview.current.title & " - companyname".
http://engage.dynamicweb-cms.com/api/extensibility/Dynamicweb~Dynamicweb.Notifications.Standard+Page~OnOutput.html
But you really do not want to do that - that is NOT good for search engine optimized pages. They will perform better if you do not add the company name.
Nicolai Høeg Pedersen
Posted on 06/07/2010 14:44:04
Just made a couple of changes of the layout parser - among them a possibility to keep your markup instead of Dynamicweb parsing it.
So what you want to achieve can be done like this
<title><!--@Title--> - company name</title>
Similar features are available for content placeholders and navigations.
The documentation have been updated (not published yet) and feature will be available with next service release.
So what you want to achieve can be done like this
<title><!--@Title--> - company name</title>
Similar features are available for content placeholders and navigations.
The documentation have been updated (not published yet) and feature will be available with next service release.
Posted on 07/07/2010 07:11:03
Thank you!
That sounds very good!
That sounds very good!
You must be logged in to post in the forum