How to work with description/keywords correctly?


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?

Nov 24, 2009 13:58

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.

Nov 24, 2009 15:22

I've missed that code completely. Thanks!

Nov 25, 2009 8:07

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

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.