How to work with description/keywords correctly?

Vote:
 

We're about to start migrating articles from our old site to the new version and I'm a bit curious on how to solve the description/keywords part. I've never worked on this part in EPiServer so I'm a bit lost. What is the correct way to get these fields into the head of the page? Do I have to create the properties in every single page type and use a contentplaceholder to get them up there or is there another way that I've missed?

#35022
Nov 24, 2009 13:58
Vote:
 

Install a CMS 5 site with Public Templates and take a look at the code. They've used dynamic properties for this, but use MainBody (or MainIntro) as fallback for MetaDescription. The code is located under Templates -> Public -> Units -> Header.ascx.cs.

#35028
Nov 24, 2009 15:22
Vote:
 

I've missed that code completely. Thanks!

#35040
Nov 25, 2009 8:07
Vote:
 

No problem! I recommend browsing through the Public and Demo templates code. Lots of good tips and tricks there!

#35044
Nov 25, 2009 9:49
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.