SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have created a web template based on teamsite (removed wiki feature). I have added a task list and a members webpart on the onet.xml file. I want to change the default view on the task list and displaytype of the webpart programmatically so that when you crate a website of this template they are changed. Thanks for your help.

share|improve this question
    
how about using site definition :) – Change Sep 18 '12 at 14:34
    
if you go through onet.xml, you can add a webpart and setup its properties using XSLT – Change Sep 18 '12 at 14:35
    
Yes, I have used xslt for example I added this <DisplayType>WebMemberGroup</DisplayType> to change DisplayType but it does not work. – Medes Sep 19 '12 at 6:36

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.