Meta data in Sharepoint sites#

Something that is very usefull but rarely discussed, is using meta data in WSS sites. The Sharepoint object model provides the use of custom properties in a SPWeb object to create your own site meta data.

Example adding custom properties

SPWeb myWeb = SPControl.GetContextWeb(Context);
myWeb.Properties.Add("Keywords","Sharepoint,WSS,SPS");
myWeb.Properties.Update();

Example using custom properties:

SPWeb myWeb = SPControl.GetContextWeb(Context);
if (myWeb.Properties.ContainsKey("Keywords"))
{
   strKeywords = myWeb.Properties["Keywords"].ToString();
}

Wednesday, September 29, 2004 5:51:01 AM UTC #    Comments [0]  | 

 

All content © 2010, Mart Muller
On this page
This site
Calendar
<July 2010>
SunMonTueWedThuFriSat
27282930123
45678910
11121314151617
18192021222324
25262728293031
1234567
Archives
Sitemap
Disclaimer

Powered by: newtelligence dasBlog 1.9.7174.0

The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

Send mail to the author(s) E-mail

Theme design by Jelle Druyts