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

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

Custom web template and variation.

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

I have a custom web template created based on the publishing template. When I create a site using the custom web template in the source variation it does not get propagated to other language variation (I have waited long enough and also run the propagate site jobs). Creating a site with the publishing template does get propagated. Will site propagation only work for publishing site or is there a way to make it work for custom web templates?

View Complete Post

More Related Resource Links

can template save custom pages?


I created a template off a site I made last year (without content). That site had some custom pages with webparts on them.  These pages were linked to from the Quick Launch menu.  I just made a new site using that template and it appears the custom pages weren't part of the template as when I click on the links to them in the QL menu, I get a 404 page not found error. I tried again saving the template with content this time and my custom pages show up - but then I have all the lists/libraries filled with old content.  Any remedy?

I am on MOSS 2007 and can use Designer.

Where is StartPage.cproj : Custom Start Page Project Template


I am reading through Wrox Professional Visual Studio 2010.
In Chapter 3, there is an example of how to customize and extend the start page.

So he wants you to copy the files from C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\StartPages\<Culture>
C:\Users\<user name>\Documents\Visual Studio 10\StartPages. He say you may need to create this because it may not exist by default. So I would just copy the files into:
C:\Documents and Settings\Sam\My Documents\Visual Studio 2010\StartPages and work from there right?

Then he says double click StartPage.csproj to opent the WPF project in Visual Studio 2010.
But StartPage.csproj simply does not exist anywhere.

I have installed Visual Studio 2010 sdk and the Custom Start Page Project which shows up in extension manager.
I just can't figure out how to use it.

I am on Windows XP.

Need step-by-step Custom Template Help

I would like to create 5 custom templates and deploy the same ones to all 13 site collections (living under one web app). Here's what I can successfully do: 1. Create a site 2. Turn off features (on a hunch after experiencing the below problems) 3. Add branding, web parts, etc. 4. Site Settings -> Save Site as Template 5. Test by immediately creating a site in the same site collection with the template (this works). However: * Weeks to months after creating the template, it stops working (in the same site collection). Could be something I'm configuring, I don't know. Users get message "The template you have chosen is invalid or cannot be found." * If I go to the template gallery, right-click and save-as,  put the template on my desktop, and then upload it to another site collection, it doesn't work in the new site collection. Again, "The template you have chosen is invalid or cannot be found." When I open the template and look at the code, I see references to absolute URLs from the site where the template was created. Would really prefer to deploy these templates without coding. * If I use stsadm -o addtemplate -filename "filename.stp" -title "title" the template also doesn't work. It allows me to create a site with it and set permissions, but then I immediately get: Server Error in '/' Application. The resource cannot be

how to create site collection by using custom template through programmatically?

hi all, how we can create site collection by using custom template through programmatically? please give me some suggestions. where we need to save this custom template... thanks in advance..

how to add custom site collection template in central admin site in SharePoint2010?

hi all, how can we add custom template in cendtral admin in sharepoint 2010? In 2007, we can add by using the stsadm tool addtemplate operation....but 2010 tremplate is saved as a solution file not a .stp file...so how we can add this template in central admin site in SharePoint 2010? Please give me some suggestions...... thanks in advance.....

Adding a custom control to the SharePoint 2010 Team Site Wiki Page Template ( wkpstd.aspx ) programm

Topic This is maybe my last post about the Team Site Wiki Page customization with the aim of exceeding its limitations. This time we are going to customize the unique template ( wkpstd.aspx) by replacing the control that renders the editable content by a custom one. In this post example, we will take advantage of the use of this custom control to render not editable additional contents, for instance, a header and a footer that could be the same for a specific Wiki Page Library. Of course, we are not going to really customize the template, but we are going to use a delegate control to replace the control at runtime. Here are the screen shots of the result: We can see a non editable Header and Footer on the Team Site Wiki Page In edit mode these additional contents are not rendered, but we can add new content as usual And of course, after having saved the page, the new content is rendered wtih the non editable Header and Footer. Steps required   If you look at the Team Site Wiki Page template, wkpstd.aspx, you can see the control that is rendering the editable content/ <SharePoint:EmbeddedFormField ID="WikiField" FieldName="WikiField" ControlMode="Display" runat="server" /> We are first going to create a custom EmbeddedFormField control Then, we are going to use a delegate control to replace the native EmbeddedFor

how to read a custom dynamic data meta data attribute in a field template

All --Please help.I need to know how to read a custom dynamic data meta data attribute in a field template.I know how to do it in a page template because I have a handle to the meta table on the page.However, I do not know how to get a handle to the meta column at run time in a field template.Can you help?Please advise.Thank you.-- Mark Kamoski

how to create site collection by using custom template through programmatically?

hi all, how we can create site collection by using custom template through programmatically? please give me some suggestions. where we need to save this custom template... thanks in advance..

Custom Entity Framework template and access to the database type

First and foremost ... I already made a few changes in the template, the most important one changing the methods generated for stored procedures with OUTPUT parameters and no resultset so that instead of instantiating a few OutputParameter objects, passing them to the method and extracting the values (all without any type checking) you just call the method with a few "out someType?" parameters so I do not need the very basics. I am totally confused by all those GlobalItem, EdmProperty, BuiltInTypeKind, TypeUsage and all this made of objects, all alike and all different though so as soon as I need more data than what's already used by the template I run into problems :-(What I would like is to change the WritePrimitiveTypeProperty() so that it outputs [StringLength(xxx)]  for all char, varchar, nchar and nvarchar properties. But I can't find a way to get from an EdmProperty in the model to the database type in the store.Can anyone help me?In case anyone is interested here's the modified stored procedure mapping code for the template. The first code replaces the original in the .tt: //////// //////// Write EntityContainer and ObjectContext Function Import methods. //////// region.Begin(GetResourceString("Template_RegionFunctionImports")); foreach (EdmFunction edmFunction in container.FunctionIm

Enabling Enterprise Key Words for a custom list template

Hi, I have developed a list template in the usual manner, using features that create site columns, content types and then a list template that leverage's the content type.  I have a problem with Enterprise Keywords.  As this is simply a Yes/No type activation, I take it this column is slightly different from normal site columns.  When I first extracted my list template from a site with keywords activated, all I can see is that the keywords column has been added to the columns in the template.  There doesn't seem to be any setting that indicates that Managed Keywords is activated.  Regardless, I can create list instances from my template fine and the managed keywords column appears as expected.  The strange behaviour is that when I upload a new document and enter keywords for it, although these keywords are entered into the termstore, when I next view the document properties, the entries have dissapeared.  Is there something I need to do through code for this.  My problem is, as I want this setting to be enabled for a list template, How else do I activate the setting considering I cannot run code from a list template?  I hope someone can help, Cheers,   Amit

Custom Email Alert template creating links to DispForm.aspx

I have a requirement to customise the alert template for a standard blog post list. To do this I: 1. Created a copy of alertstemplate.xml 2. Copied the genericList alert template node and customised 3. Registered the new template file against the site collection, iisreset and finally assigned the new Alert template to the list, when alerts are created the custom template is emailed. The problem now arises that the 'View <Post Title>' in the toolbar section now creates a hyperlink to http..../Lists/Posts/Dispform.aspx?ID=xx rather than post.aspx. I have checked using sharepoint designer that the list supporting files has the correct display item form of Lists/Posts/Post.aspx. Additionally if I reset the alert template for the list back to use the Generic list template the same problem still occurs so this leads me to believe it is not the customisations that are the problem. Code used to assign the alert template to the Posts list: var ats = new SPAlertTemplateCollection((SPWebService) site.WebApplication.Parent); var newTemplate = ats[alertName]; if (newTemplate == null) { // We did not find the specified Template. throw new Exception("Failed to find template SPAlertTemplateType.NewsPost in the template collection."); } list.AlertTemplate = newTemplate; list.Update(); Any assistance will be most welcome, thanks in advance. Alan

Duplicate field name error, creating new site from custom template

I've made a site that maps the site (with a table of contents) and i export it to another site collection. I'm able to install and activate the solution in the other site collection, however when i'm going to create a new site using the site i've installed as a template it pops an error saying "A duplicate field name Wiki_x0020_Page_x0020_CategoriesTaxHTField" was found." I have no clue what this means. Can anyone help me? Thanks in advance

Creating a new site sharepoint 2010 under parent site with my custom template Programatically using

Hi, I have a parent website under which i want to create subsites on the fly using visual studio 2010. The subsites which i want to create have a common stuructre(in temrs of lists & custom). So i saved the template in sharepoint 2010,it becomes wsp and goes into soution gallery. Now how do i use this template say mytemplate.wsp,to create site in visual studio. i tried this using (SPSite site = new SPSite ("http://infml01132:5566/sites/VRND " ))             {                 using (SPWeb web = site.OpenWeb())                 {                                       SPWebTemplateCollection myTemplates = site.GetCustomWebTemplates(Convert .ToUInt32(web.Locale.LCID));                     //SPWebTemplateCollection temlates1 = site.GetCustomWebTemplates(1033);                     //SPWebTemplateCollectio

Custom document library template at farm level.


Dear all..

I'm trying to create a custom document library template at farm level, as I want to template to be available in all the sites I create.

The thing is that I'm not sure if I'm taking the correct approach. I just need a standard document library with 3 additional columns (Metadata) 2 text fields and one date field. I will then add a document library of this type to a custom site template I've already created. (So instead of list with Type '101' I will use my custom 10055 library.

The way I'm trying to do this is:

1. I make a copy of the FEATURES\DocumentLibrary folder of my installation. So now I have FEATURES\CustomLibrary folder

2. I create an empty SharePoint project in Visual Studio 2010 and map the TEMPLATE folder, and the I add CustomLibrary folder and all the files and subfolders in it.

3. I edit the feature.xml, and add a newly generated GUID

4. I make the modifications I need to the other xml files included in the DocLib and SiteTemplates subfolders. (Type=10055, etc..)

5. I right click on the solution and deploy.


After this, I can't see my custom library when I try to create a new item in my sites. 

One thing I don't understand is why the OOTB DocumentLibrary feature has HIDDEN = true in the feature.xml file. Anyway I've tried both in my custom template, but

Missing Custom Control Library Project Template in Visual C# 2010 Express?


I am using Microsoft Visual C# 2010 Express Version 10.0.30319.1 RTMRel and I want to add a Project for a WPF Custom Controls library. Note: The WPF Custom Control Item Template is included and can be added to a WPF Application project.

Does anyone know:

  1. Should the WPF Custom Control Library Template be part of this application edition?
  2. Where is the online documentation that states exactly which features are and are not included in each edition?
  3. What can be recomended as a work around?


Custom Page Template (List.aspx) - one to many relationship


Hi, I have two tables which is Customer and Customer Details table, with one to many details.

Is there possible to show Child table's column in (done in one GridView) Customers/Lisp.aspx?

Creating a dynamic site using custom template programmatically.



I have sites like




I have created Project1 as Template (Save as Template) and this template is available at http://kashyap Site Gallery > Solutions

http://kashyap/Team has a list called projects. I want to do custom workflow which is run by user manually(It is not problem). I want to create site programmatically  based on the template. I did some code Its

 private void codeCreateSite_ExecuteCode(object sender, EventArgs e)
      SPWeb web = workflowProperties.Web;

      SPListItem lst = workflowProperties.Item;
      string title = lst["Project Title"].ToString();
      string url = Common.UrlString(title);
      string desc = "Project from " + Common.GetFormatedValue(Convert.ToString(lst["Customer"
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