I am creating a site definition by code. I want to add an already created workflow to this site definition, then what are the steps to achieve this?

Please guide.

1 Answer 1


Just modify your ONET.xml and add Site feature definition:

  <Configuration ...>
      <Feature ID="[guid-here]" />

For inspiration open any of existing site templates in your 14 hive directory:

Here is the STS C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\SiteTemplates\sts\xml


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.