Friday, October 08, 2010

1008: Features In SP2007

  • Features Location :  …\web server extensions\12\Template\features
  • Features Key files
    • Feature.xml
    • Elelment files : stored in <ElementManifests> section of features.xml
    • Resource Files : …\web server extensions\12\Resources
  • Feature Scope:
    • web
    • site
    • webapplication
    • farm
  • Element scoping:
    • Not all elements are available at all scope levels
  • How to create feature in VS
    • Create a class library with sharepont.dll reference
    • Create a feature xml (associating schema to feature)
    • Create element files and add them to feature.xml
    • Copy the whole folder in feature directory(…\web server extensions\12\Template\features)
    • run command line: stsadm.exe –o installfeature –name sdy
    • In share point site, site setting-> site features-> active
  • Feature deployment : install and activate
    • Install feature
      • stsadm.exe command line
      • sharepoint object model
    • Activating feature
      • stsadm.exe
      • sharepoint object model
      • sharepoint site definition(one.xml)
      • admin user interface
    • Another way to deploy multiple  features by using wsp
      • Create manifest.xml
      • create a ddf file
      • using Makecab.ext with manifest.xml and .ddl to generate .cab and .wsp file
      • run stsadm.exe –o addsolution –filename *.wsp
      • on sp admin site , operation->select wsp file-> deploy

0 Comments:

Post a Comment

<< Home