.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Extending an existing site definintion

Posted By:      Posted Date: October 18, 2010    Points: 0   Category :SharePoint

Hi All,

I wanted to know if there is a way for me to extend an existing site definition instead of starting everything from scratch. I have an existing site definition that works well for our needs but i need to design a variant to this one which differs only slightly. So, instead of creating all the xml files, feature receivers etc.. i want to extend the existing one and make changes.


View Complete Post

More Related Resource Links

Question on using variations on an existing site


I've been using MOSS 2007 for my company's CMS system for the last 2 years or so. Recently, the marketing department has asked us to include the option for multilingual support so naturally, I looked to using variations to accomplish this, however, the site was setup without variations since this was "definitely" not a requirement back when we setup the site.

My problem is when I enable variations, it seems to create new sites off of the root (e.g. English, Spanish, French), however,  it isn't copying anything from the Root site that already exists or any of it's subsites or pages. Is there any to keep my existing site content intact and still use variations, including all of the update features?

Thanks in advance

Is it. Is it really?

Alternate languages - change on existing site

Hello. I need a help. In my template, when i choose in Site Actions -> Alternate languages and then on System account choose "Select Display Language". Work for RIBBON row and for all fields. But not work for a Quick Launch Menu. I have a .resx for Slovenian and English. I think i need some web update event receiver, but i do not find. If i use a template of SharePoint 2010 it's work also  Quick Launch Menu.

Is it possible to configure an existing sub site as variation source label in 2010?

Hi, I am trying to configure variations on an existing site. For example, I already have a site collection and a sub site "en-us" that has all the content. Would it be possible to configure this existing "en-us" as my variation source site? If not possible, can anyone suggest me any work-around? This is very critical and hopefully there is a way to achieve this without having to move all the content from "en-us" to my top level site, create variation labels with different names, and then delete the content from top-level site. Please suggest. Thanks, Karthik    

how to create a site definition from existing site in sharepoint

Hi any one please help me how to create a site definition from existing site in sharepoint. It's very urgent

Thanx in Advanced



How to associate STP file to an existing site in same farm.




single farm


there are 2 web-applications: web-app1, web-app2.


Each webapp has one site collection. that is 


webapp1 has site-collect1


webapp2 has site-collect2


Now for some reason I want to copy site-collect2 to webapp1 as site-collect1.


content-db doesn't work because of database ID issue.


I am trying to use 'save as template' from site-collect2 and can get STP file but how do I assocaite this STP file to site-collect1. I am looking for any STSADM commands or source code that does this. Here also I wanted to create site-template with 'data' but it is giving me error. I will check this later. 

thanks for reading.please suggest.

Adding .aspx page to existing web site



I have a running ASP.NET web site. There is following problem with one of the forms:

One part of submitted data is added to database after "submit" is clicked. (to "table1")

Another part is lost (not added to "table2", and no files uploaded)

I have no source code of that project.

So, because I cant edit existing page, I came to a decision to add new .aspx page to a running application with same functions as existing one.

How can I do that? Or maybe you can recommend some other solution.

Thanks, Alex. 

How to apply a custom master page to all the existing site collections, sub sites in sharepoint 2010



my custom branding master page is applying to the newly created site collection or sub sites using feature stapling.

but my intension is already created site collections and sub sites, here i am not able to apply custom master page to site collections and sub sites.

pls help me. i need to complete this task today EOD.

Creating a feature that will recreate a existing site with all it's subsite content


i have a site saye http://intranet

under that site i have http://intranet/eng


now i have to create a Feature that once activated will recreate the same site http://intranet and its subsites http://intranet/eng

http://intranet/IT with all its contents

in another site collection in the same FARM.

Any suggestions that will help me here 

Extending web application but using different site template is it possible?


I would like to extend a web application so the extension uses a different site template. At the moment the application uses the Team Site template and I would like the extension to use one of the publishing templates.

The reason I want to do this is to be able to share the content between the two sites so that my users do not have to upload content to two places and also give the two sites a distinct look.

What I've tried already was do the obvious - Click Create/Extend application and did extend.

But you know, as I think of it I probably could change the master page for the team site and the users wouldn't know the difference. It would just mean that they would have to figure out where their stuff ended up at. Hmm.

Anyway, how would I go about extending the application and using a different template?



Import-SPWeb into non-existing site?


Trying out the Import/Export-SPWeb PowerShell CmdLets instead of stsadm -o export/import.


Export-SPWeb works great to export a site into a .cmp file, but when I try to import it using Import-SPWeb:

    Import-SPWeb -Identity http://myserver/nonexisting -Path d:\export\site.cmp

I'm getting an error message that it can't open the SPWeb. Non surprising since it doesn't exist - that's the whole point of an import.


With stsadm -o import I have no issues, it just creates the /nonexisting site with the proper template and everything.


Am I overlooking something, or is Import-SPWeb indeed inferior to the depreciated stsadm?

Creating Site Collection in Existing Content Database

Hi All,

I'm trying to create a site collection in a existing content database. I haven't found a method in Sharepoint object model to perform such a action. There is an option to create a site collection in a new database using the following command:
SPSiteCollection.Add(url, siteDescription, siteDescription, 1033, siteTemplate,
                                                                siteCollPrimaryAdmin.LoginName, siteCollPrimaryAdmin.Name, siteCollPrimaryAdmin.Email,
                                                                siteCollSecondaryAdmin.LoginName, siteCollSecondaryAdmin.Name, siteCollSecondaryAdmin.Email,
                                                                strSQLServerName, siteContentDBName, null, null);

Is there a different object to do this creation on existing database? Any ideas to approach this problem will be greatly appreciated



Changing Feature Pack on an Existing Site


I'm seeing an issue where if I create a Sharepoint site and set it to a given site subscription and then go back to change the Feature Pack associated with the site subscription SharePoint 2010 does not reflect these new features in the UI. 


An example: 

I create a site with a feature pack that corresponds to the Foundation features.  At a later date I want to re-assign a new Feature Pack to the site subscription that corresponds to the Standard features. 

Doing the following to change the associated Feature Pack on the site subscription where $featurePackID is the GUID of the Feature Pack I want to change the subscription to using:


$sub = Get-SPSite -Identity $url

#Set Feature Pack
if ($featurePackID -ne "")

	$FeaturePack = Get-SPSiteSubscriptionFeaturePack $

Migrating Custom Site Definition to SharePoint 2010: Do i need to make any changes to existing site



I am migrating from SharePoint 2007 to Sharepoint 2010.

We hae 2 custom workflows to be migrated.I have deployed the respective wsp which were used in Sharepoint 2007 site.But it did not help and i got errors.

Do i need to change my site definiton or my wso before deploying the same to Sharepoint 2010


Ram kiran

Can i Hide Site action menu for a person who is existing in owner group?



I have requirement like hide the site action menu for a person who is existing in owner gruop.

Here the probem is with out any code just use out of box or designer.

Appreciate help..



Is it Possible to edit an already existing Web Part in a sharepoint site with SharePoint Designer 20


I want to add few options with already existing web part and customize it more using sharepoint designer.

I do not get the needed options through browser customizations.

Is it possible?.. How can i open a particular web part in SharePoint designer?

Report throwing error in on new WSS Site created from backup of existing WSS Site.



We are using wss 3.0 and SSRS 2008.

We have taken a backup of WSS site and Report server DB from server1 and restorted the same on server2.

But when we are trying to access the report on this new server(Server 2) then we are facing this error -

The item 'http://server2:12121/sites/aaram/reports/Report Library/Administrator/ReportName.rdl' cannot be found. (rsItemNotFound).

When we redeploy the report the issue gets resolved. But this does not seem like a good solution as its not feasible to redeploy all the reports again.

Can someone please suggest a solution for this issue?


New site columns added using xml,not shown in existing site collection


I have added new site columns to the existing content type using xml,deployed to a sharepoint application as a feature using VS2010. Now my problem is the site columns are not updated in existing pages under site coolection,it is showing only the existing site columns and not the new site columns. I then tried adding those site columns to the pages library manually,after that it is displaying those columns in pages and i can enter text in edit mode but whenever i save the page it is rendered with some tags like <span id="msrterangecursor">. It is shown for only new site columns.

Could anyone help with this.

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend