0

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

0

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

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

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

0

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.