a foundation for a new SharePoint site. The site definitions not only determine the appearance and behavior of the SharePoint site, but also its default content and functionality.

learn more… | top users | synonyms

13
votes
2answers
2k views

Convert site template to site definition

How do I go about making a site template to a site definition? For example, if I have a modified team site which I saved as WSP (save as site template), can I import that into VS2010 and convert to a ...
7
votes
3answers
8k views

Sharepoint 2010 XsltListViewWebPart on site definition template

Im having a problem placing the XsltListViewWebPart on my Default.aspx template (relevant code bellow) <WebPartPages:WebPartZone runat="server" ID="NewsItemsList"> <ZoneTemplate> ...
6
votes
1answer
524 views

Site Definition vs Web Template for product site

I'm getting ready to create a product for SharePoint, and I'd like it to be as easy as possible for people to deploy and use. I was planning on using a Site Definition, since this seems like a great ...
5
votes
1answer
200 views

Disabling standard quick launch behaviour

I have created a Site Definition using Visual Studio and also created a List Definition from which I use the List Instance in a web-scoped feature which activates upon creation of a subweb using the ...
4
votes
2answers
371 views

How to “seed” default content into newly provisioned site definitions in SharePoint 2010?

We have a publishing site definition that we have created in Visual Studio 2010. It is working great and provisions the sites just fine. We have a need to have starter content inside the sites. All ...
4
votes
2answers
391 views

Search for specific Web Template in SharePoint Search

Is it possible to construct a SharePoint Search Query for a specific web type (site definition / web template id) in the same manner as for lists? I can easily search for my custom lists using ...
3
votes
2answers
2k views

Limit templates available when creating sub site?

I have created a site definition but i need to limit what sub sites can be created by the user. How can I do this with SharePoint 2010? thanks
3
votes
1answer
515 views

How to deploy a workflow as part of a site definition?

We have a customer that will be creating many sites based on a site definition. The sites include a list. We would like to connect a workflow to that list such that the workflow starts whenever a new ...
3
votes
1answer
1k views

Create a site using powershell for a custom site definition

I have created a custom site definition which I can see and create a site using my custom definition with the UI. However, if I try to create a site using powershell I get an error saying WARNING: ...
3
votes
1answer
589 views

How do I create a custom default page for my SharePoint sites?

I've created a MOSS 2007 SharePoint site definition for my users, and now want to use a custom default.aspx page as a landing page every time a new site using that definition is created. That default ...
2
votes
5answers
609 views

When is it right to customize a site definition?

In some scenarios there is a need for being in as much control of the site provisioning process as possible. In some senarios there is a good solution to customize site definition by customizing the ...
2
votes
4answers
171 views

feature stapling in site definition

I want to create site definition using VS2010, also when any site get created it should activate few feature automatically. How to use feature stapling exactly , please anyone let me know step by step ...
2
votes
4answers
714 views

Problem applying content type bindings to an es-ES site definition

I'm building a publishing site which will support the following cultures: de-DE (1031) en-US (1033) es-ES (3082) fr-FR (1036) it-IT (1040) ja-JP (1041) ru-RU (1049) zh-CHS (2052) I can create an ...
2
votes
3answers
5k views

“Cannot find this file” error when deploying from Visual Studio 2010

I'm getting an error in Visual Studio 2010 after pressing F5 to Debug: Error occurred in deployment step 'Add Solution': Error: Cannot find this file specified in the manifest file: ...
2
votes
6answers
994 views

Feature stapling vs Site Definitions

I curious of what you’re experiences are one the user of site definition compared to feature stapling. In a video on Channel 9 Ted Patterson explains that feature stapling is the way to go. It would ...
2
votes
2answers
2k views

Custom web templates vs custom site definitions

I read the MSDN article "Deciding between custom web templates and custom site definitions". The article only scratches the surface, so I was wondering if anyone have had some hands on experience with ...
2
votes
2answers
1k views

Changing site/list definitions post-production

There have been several questions asked on this site regarding the best way to provision sites and lists (definition schemas vs. templates vs. the object model vs. the web interface vs. provisioning ...
2
votes
2answers
5k views

MissingSiteDefinition >> How do I go by fixing this issue?

[MissingSiteDefinition] 1 Sites in database [Colgate_WSS05] has reference(s) to a missing site definition, Id = [16781], Lcid = [1033]. The site definitions with Id 16781 is referenced in the ...
2
votes
3answers
1k views

Update Web Part in Custom Site Definition and created sites

I have a site definition with a custom web part, the projects (both the site definition and the web part) are part of a CI build which means the version numbers are incremented each build. The ...
2
votes
1answer
1k views

<View> (ListViewWebPart) from within publishing page in feature

This is in the context of MOSS 2007. I have a custom site definition. Currently in ONET.xml we have the following Module: <View ...
2
votes
2answers
53 views

Why do we use list definition? When we need to use site definition in SharePoint?

I have a question for that need know absolution from this invoke. why do we use list definition? when does useful for site definition in SharePoint?
2
votes
1answer
265 views

Delegate Control SiteMapDataSource throws error

We have a solution with WSP package. This contains set on Delegate Controls. I want to use one of the Delegate Control with multiple parameters. Hence, I have copied that code related to that and ...
2
votes
2answers
494 views

Adding a hidden page with site definition

I want to add a page to my site definition which is hidden ie. doesn't appear in the navigation, by default. The page is provisioned in the onet.xml file as follows; <File Url="SomePage.aspx" ...
2
votes
2answers
971 views

Site with custom master page reverts to v4.master on upgrade

I have a web application in 2007 that contains a bunch of sites that all used a custom site definition and a custom master page (deployed using a feature). All is well. I've upgraded the code for ...
2
votes
0answers
53 views

to go with save site as a template, web template or site definition

I have to create a generic site template which has few tabs in the home page and on click of these links/tabs in this site template it will navigate to the sub sites created under that[this generic ...
2
votes
1answer
961 views

Sharepoint 2010 site definition one template to create multiple publishing pages

Im trying to create a publishing site definition where I use one file to provision many templates. eg in onet.xml ... <Modules> <Module Name="Landing" /> <Module Name="Test" ...
2
votes
1answer
396 views

Deploying webparts to default.aspx with a SiteDefinition feature dependency

I tried deploying a Site Definition with a custom default.aspx page. Within the <WebFeatures> node of the Site Definition's Onet.xml I tried to reference a Feature which would get a web part ...
1
vote
2answers
507 views

Activating a feature after an SPWeb has been created

I am trying to ensure that a custom feature that I have written is activated when an SPWeb is created, and it has to be activated after all lists/libraries have been created (specifically the document ...
1
vote
2answers
2k views

Site Definition with list instances, pages, web-parts, feature-stapling or feature activation

I need to create a site definition (as I tried to re-use a wsp site template to extend it but failed). Is it possible to create a site definition with 16 list instances (with a variety of types, 100, ...
1
vote
1answer
83 views

Sharepoint 2007 to Sharepoint 2010 Migration Issues

I recently migrated SharePoint 2007 portal to SharePoint 2010 using content database attach/detach method. After mounting the database in SharePoint 2010, site collection got created. When I browse ...
1
vote
1answer
905 views

Site definition inherit/display parent global navigation

When creating a Site Definition in Visual Studio, how do I make sure that the new site created from this definition will display the same global navigation as the parent web in SharePoint 2010?
1
vote
4answers
2k views

How to change URL for SharePoint:SiteLogoImage

I have the job of migrating a sharepoint site from one server to another. Everything appears to have moved across correctly, but there is one image which has a url to the old site. I've tried ...
1
vote
1answer
94 views

How can I add an app instance programmatically or declaratively?

I am currently working on a large deployment consisting of a large number of Site Collections with some custom SharePoint Apps (specifically custom ASP.Net High-Trust Provider Hosted Apps, but that ...
1
vote
3answers
472 views

Where is the default.master page?

I've inherited a SharePoint site with some odd behavior. In MS Office SharePoint Designer, when I "Reset to Site Definition" the "default.master" page, it still has lots of customizations, e.g. ...
1
vote
1answer
2k views

from where i Copy “webtemp.xml” and “onet.xml” files of standared sharepoint 2013 team site

I want to create site definition in VS 2012. But for webtemp.xml and Onet.xml files,I want to copy content from webtemp.xml and Onet.xml files of standared sharepoint 2013 "team site" for my site ...
1
vote
2answers
2k views

SharePoint 2013 Site Definition Template Missing

I am using Visual Studio 2012 Ultimate RC, and I did install the Sharepoint 2013 tools. But cant find the site definition templates. Any thoughts??
1
vote
1answer
176 views

In what order does a Site Definition provision a site?

I have created a site definition in which I have a series of web scoped features getting activated. Some of the features are meant to set targetting audiences on webparts, some of them are creating ...
1
vote
1answer
638 views

How to use resource files in webtemp xml

Probably another easy question, but I've been working on it this morning and haven't been able to get it to work. I have a site definition that I am attempting to move the string literals to a ...
1
vote
3answers
2k views

SharePoint 2010: How to control order in which web features are applied

We have a site defined in onet.xml. The site has 5 features: some standard, some custom. One of the standard ones is the team site. On activation of our feature we would link to copy files into the ...
1
vote
1answer
161 views

How to add TasksWithTimelineAndHierarchy web part to site definition

I am currently working on a site definition for a customer. Their wish is to create a team site with four subsites and some specified web parts on them. Safe to say all that works, but I am however ...
1
vote
2answers
298 views

Provision list view for discussion board

I have provisioned a publishing page through a feature and andded an instance of a discussion board web part to the home page, this works fine. How can I make sure the web part chrome is set to ...
1
vote
1answer
1k views

Add a visual web part to the default page of the custom site definition via ONET.xml file

We have created a SharePoint solution with custom site definition and a simple visual Webpart using Visual Studio 2012. The purpose of the solution would be to add the custom visual webpart to the ...
1
vote
2answers
198 views

Site Definition not available from Powershell

Using SP 2013. I have created a site definition in Visual Studio 2012. Deployed that as a solution. From the UI I can create a site and select the template I created. However when I go into ...
1
vote
1answer
134 views

Customactions not binding to content type

Facing a strange and frustrating issue just before Christmas :-( Heres the scenario: I've got a custom content type, list schema , the whole works all exported from another site using the Sharepoint ...
1
vote
1answer
105 views

How do I deploy a new site definition

I'm starting off with a SharePoint development, and created a Site Definition containing, well, nothing. My plan was to create a sharepoint site using that definition and go from there, however, I ...
1
vote
1answer
32 views

What things/attributes need to be changes while renaming a Site Defination?

I have a site definition folder with following structure, XML default.aspx MasterPage.master masterpageajax.master In XML folder I have "ONET.XML" and I looked into this file, and realized that ...
1
vote
2answers
663 views

Add an XsltListViewWebPart to a site defintion homepage

What's the best method for adding an XsltListViewWebPart to a site definition's default.aspx? I've tried to add one to the definition's default.aspx declaratively by copying the XML from an existing ...
1
vote
1answer
180 views

What is difference between site template and site definition?

My organization has multiple clients. And we need to create similar site collections (with 4 lists and few items which must be the same for every client) for each client. So I was advised to create 1 ...
1
vote
1answer
682 views

Can custom site-definitions be upgraded in SharePoint 2013?

I have a site-collection on SharePoint 2013 which is using the SharePoint 2010 experience version and does include a website which is based on a custom site-definition. When i try to upgrade this ...
1
vote
0answers
142 views

Lists not being added to quicklaunch

I'm having a problem with some lists that are included in a feature (Scope: web), which is created via a site definition. These lists have the display on quicklaunch set to true, although, the only ...