Take the 2-minute tour ×

I have been asked to write a custom webpage in a web application integrated into a MOSS 2007 solution to allow users to create a teamsite using a custom template. No problem.

However, the user must have the ability to assign custom meta tags to the created team site to allow for specific searches, i.e. to assign country ("USA") and department ("Accounting") tags. Can anyone suggest a way of adding custom properties to the newly created team site via the SharePoint API?

Thanks, MagicAndi

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

There are 2 options:

  • You can use the Propertybag (SPWeb.Properties) of the SPWeb object of the new team site
  • You can add a list (invisble to users except admins) called "site tags" and add some items in there with key value pair fields i.e. item Country with value "USA" etc.
share|improve this answer
Colin, Thanks for your answer. The PropertyBag looks interesting. +1 –  MagicAndi Sep 24 '09 at 9:21
Colin, Just to ask if there is a way of specifically searching against the meta data stored in the Property bag using the MOSS search capability, or would this involve custom code? Thanks. –  MagicAndi Sep 24 '09 at 9:48
This would involve custom code. The second option does not. –  Colin Sep 24 '09 at 11:20
And searching against the propertybag is a LOT of custom code, if possible at all. –  Colin Sep 24 '09 at 11:21
Colin, Thanks for your answer and comments. Accepted as the answer! –  MagicAndi Sep 24 '09 at 22:57
add comment

Your Answer


