.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

Variation sites and page layouts

Posted By:      Posted Date: September 21, 2010    Points: 0   Category :SharePoint


I have set up variations in my SharePoint site. The requirement is to have three sites: english, chinese and german.

I have created the variation labels and my english site is the variation source site. I have moved content from another site to this English site.

I then created the variation hierarchies to propagate the sub sites and pages from my english sites to the other language sites.

I noticed the following problem:

My English site has many sub sites that use a "custom page layout". But after these sub sites are created in the Chinese and German sites, the pages do not take their custom page layout. They are created with the "Summary Links" layout. (All these pages are inside pages library of the respective sub sites, and their page layout uses "Article Page" content type).

How do I correct this problem? Please suggest.

Thanks and Regards,


View Complete Post

More Related Resource Links

Variation label in a page layout and Translated Columns



Can any body elaborate on this two terms in publishing sites.

1: Variation label in a page layout

     When i edit the page layout from browser interface of publishing site with variation, there is one field called "Variation" where user

     have to select the variation label from a list.

2: Translated Columns

     Don't know what is this, i try to google a lot but not found any information.


Thanks in advance

Regards Sandip Patil Sharepoint Developer http://www.worldofsharepoint.com

How to set the variation root redirect page to ALWAYS go to a preset label?

Hi. I have setup variations and I have 4 labels, SE EN FI DK. This is a public website and I want every visitor to first be directed to the predetermined label, for example SE. This no matter what setting they have in their browser... In Sweden, most people have English as the language in the browser since this gets you better content in most places, but in this case, it gets them the EN label instead of the SE label as default. How can I change this in the best way possible? Are there any easily adaptable solutions available? Like on codeplex? The MSDN way is not to my liking, manually customize every front end or compile my own DLL....Noo, there has to be a better way right? (How to: Customize the Variations Label Control Logic http://msdn.microsoft.com/en-us/library/ms551625.aspx) Appreciate any help you can give me on this. RegardsThomas BalkestÃ¥hl - Technical Specialist - SharePoint

Javascript error when attempting to switch page layouts in SharePoint 2010

I hope I put this in the correct forum. I am experiencing the following error when attempting to change the layout of an existing SharePoint 2010 page. But it does not seem to happen on all page types, just publishing pages. This error is happening on both the development server and both test servers. I have look in to the logs, since if it a javascript error there was nothing, which would be expected but I had to try. I have look at the cui.js file but was unable to spend enough time trying to figure out what exactly is going on in this file. Error being received ... Webpage error details User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; MS-RTC LM 8; .NET4.0C; .NET4.0E; InfoPath.3) Timestamp: Tue, 7 Sep 2010 21:10:54 UTC Message: Object required Line: 2 Char: 6422 Code: 0 URI: http://devintranet2010.myconexus.ca:85/_layouts/cui.js?rev=wvoVpqlQb30nGo4DjDk8Kg%3D%3D   If anyone has any ides or can point me in a direction that will allow me to productively continue my investigation, the information would be greatly appreciated. Regards Kyle

How To Use a Specific Sites' Master Page for my custom asp.net application

I have a custom application that I migrated to sharepoint (compiling into single DLL and creating a fodler for it in the layouts folder in 12 hive) Currently, I am using ~/_layouts/application.master as my masterpage for the custom application. However, i would like to use a certain site's master page for my application versus the default one. For instance, I would like to use the master page from this sub site www.maindomain/sites/subsite/ Thanks for your help.

How to design common page across different sub sites and make them customizable?

I have a requirement to develop common pages with web parts and all authoring capabilities that should be hosted in the top level site and can be shared among all sub sites. The advantage of this should be as long as the sub sites don't want to customize this common page for look and feel or authorizing content this page will be served as a common page and yields the performance benefits. But when the sub site wants to customize the common page, it will have its own copy and any changes made to the common page shouldn't be available for the customized common page. How can I achieve this? I tried with the application page by hosting them into the 14\TEMPLATE|Layouts folder, but couldn't see the publishing capabilities enabled. Help will be greatly appreciated.

Delete Page Layouts and Master Pages in SharePoint 2010

Hi I want to delete unwanted Page layouts and master pages in share point 2010. I tried to delete the steps mentioned below as like MOSS 1.Create a New folder 2.Move the page layouts to that New folder 3.Delete the New folder But this approach also failed.. please suggest me to delete... Thanks in Advance ArunWith Love

Custom webpart with linqQuery works on all sites but not on the "my profile" page in the overview ta

Hi, I created a publication site and in that site i created pages with specifique metadata (using a pagelayout with a custom content type)0. My webpart is getting data from those pages and displaying it. My webpart works on every page except on the "my profile" page(overview tab). I get the following error: Invalid Url: /TestSites/course I used the SPMETAL to create a class and i'm using this class to retrieve the data from the pages (with linq). The url i give to the entity is http://pcp/TestSites/course  this works fine on every site except on the my profile page. Can anybody help me? Here is the code i use to retrieve my data: EntitiesDataContext ctx = new EntitiesDataContext(courseSite); //Code below gets only the pages with a courses contentType. //EXCEPTION TRIGGERT ON THE FOLLOWING LINE IF IN PROFILE PAGE EntityList<Courses> course = ctx.GetList<Courses>("Pages"); //Writing the query to get the correct pages(with the course page layout only! var Query = from myCourse in course.ToList() where myCourse.CourseParticipants.Contains(myWeb.CurrentUser.LoginName) Select new{myTitle = myCourse.CourseTitle, myCompany = myCourse.Company, myPath = myCourse.Path, myName = myCourse.Name }; Thx.

Programaticaly set the Page layouts and site settings



I have created custom site definition,

After  creating subsite with this site template.

In this subsite --> Create Site --> This custom site definion should not appear

I set it Subwebonly="False"  in respective  xml file


How to programaticaly  set           -------->the  site actions -->Site Setting --> look and  feel -->Page layout and site settings



<Configuration ID="1"

Site Settings - Page Layouts and Templates Error


I'm getting an error page when trying to reach Page Layouts and Templates page from site settings on one of the sites in our collection.  When the user clicks on Site Settings -> Modify all site settings -> Page Layouts and Site Templates an error page is displayed with the message: Data at the root level is invalid. Line 1, position 1.  I've checked Event Viewer on the server and found no errors for this issue.  I'm very new to SharePoint Admin and I'm not sure why this would happen.  I'm including an exerpt from the log file below.  Does anyone have any ideas for me? 

10/30/2009 13:50:01.42 	w3wp.exe (0x0BC4)                       	0x07C8	Windows SharePoint Services   	General                       	8e25	Medium  	Failed to look up string with key "ReportBuilderContentTypeDesc", keyfile .	 
10/30/2009 13:50:01.42 	w3wp.exe (0x0BC4)                       	0x07C8	Windows SharePoint Services   	General                       	8l3c	Medium  	Localized resource for token 'ReportBuilderContentTypeDesc' could not be found for file with path: "(unavailable)".	 
10/30/2009 13:50:01.43 	w3wp.exe (0x0BC4)                       	0x07C8	Windows SharePoint Services   	General                       	72kg	High    	#20015: Cannot open "Resources.en-US.resx": no such file or folder.	 
10/30/2009 13:50:01.43 	w3wp.exe (0

Sharepoint 2007 page layouts - CSS otr Tables



I've just got into customising my own sharepoint page layouts. I have a good a css background and I've started by just copying the code from the blank web part page or the welcome pages to create my layouts. I notice they are all table based layouts. Is there any reason why I couldn't do purely css based layouts?


Associating Page Layouts with newly created site



I've a simple web part in which i'm creating a sub site within my site collection.

I'm creating this site based on publishing template. 

I've created some custom page layouts (using designer) that are already deployed on my site. 

now when i'm creating a new site based on publishing template, i want one of my page layouts to be associated with this new site.

I really don't have any idea how to do it? So need your help in this regard. 


Thanks & Regards,





Associating Page Layouts with newly created site



I've a simple web part in which i'm creating a sub site within my site collection.

I'm creating this site based on publishing template. 

I've created some custom page layouts (using designer) that are already deployed on my site. 

now when i'm creating a new site based on publishing template, i want one of my page layouts to be associated with this new site.

I really don't have any idea how to do it? So need your help in this regard. 

 P.S. I'm working in SharePoint 2010.

Thanks & Regards,


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.

Auto-check in new variation page



I need to automatically check in pages that are created by variations (i.e. when a user clicks the "Create a variation of this page for a target label"-button, the created page should, in some cases, be checked in in the target label).

I've tried to hook up an event receiver (listening to ItemAdding, ItemAdded and ItemCheckedIn) to the pages library, but this doesnt get hit when Variations creates the page (only when I add a page manually to the library).

Any ideas why and/or how to do this?



Content sources page (layouts/listcontentsources.aspx) takes 10 minutes to load or fails with 'Unkn

Ever since this weekend we cannot normally access the Search Content sources page. It takes ages to load and sometime fails with "Unknown error". Also, we have incremental crawls on all our content sources that are stuck for ~30 hours now. Restarting search services didn't help. There's almost no activity on our search server. May have something to do with backup software on the search server but we uninstalled it completely now.

MOSS2007, latest SP's, clustered farm, 2 * FWS, 2 * SQL, separate index server

Any clues?


Configuring outputcache of Ghosted Page Layouts


We have many page layouts which are deployed in the "12" folder of MOSS and are Ghosted into the BD by MOSS.

We are going through the step of configuring the cache on the site collection and we want to set specific Cache Profiles to certain Page Layouts.

If we do it via the Master Page Gallery, the Page Layouts are "unghosted" and therefore disconnected from the copy on disk.  We cannot deploy them with WSP and we receive this error when trying to open a page again :

The attribute 'autoeventwireup' is not allowed on this page.

After applying the Reset Page Site Definition : see  http://blogs.msdn.com/b/jjameson/archive/2009/11/08/autoeventwireup-issue-in-moss-2007.aspx

The pages are working again...

We then tried to do it the "ASP.NET" putting this directly in the ASPX page layouts after the


@ Page

Issue with page layout when moving sites to a different web application


I am moving sites from one web application to another but having issues with the default.aspx and other aspx pages in publishing sites.

Moving from http://myCom:8080/SiteCollection/Site/Subsite --> http://myCom:8888/sites/SiteCollection/Site/Subsite

In the default.aspx page, this line referencing the page layout does not get converted properly after import (I'm using stsadm export/import)

<mso:PublishingPageLayout msdt:dt="string">http://myCom:8080/_catalogs/masterpage/WelcomeLinks.aspx, /_catalogs/masterpage/WelcomeLinks.aspx</mso:PublishingPageLayout>

is changed to

<mso:PublishingPageLayout msdt:dt="string">http://myCom:8888/_catalogs/masterpage/WelcomeLinks.aspx, /_catalogs/masterpage/WelcomeLinks.aspx</mso:PublishingPageLayout>

When default.aspx is displayed it gets a File Not Found error. I have to manually change it to http://myCom:8888/sites/SiteCollection/_catalogs/masterpage/WelcomeLinks.aspx to get it to display.

How can I get it to convert to /sites/Collection/ automatically during the import process?

Any help is wel

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