View Complete Post
Overview – We are building a Mobile Web Site using SharePoint 2007. The big screen site has been already built and we need to integrate the
mobile site into same site collection of big screen –
The Mobile site will use the existing content types of existing big screen site
We will build a new custom Master page
I have created a site definition that applies a the publishing features and a feature containing some publishing page layouts before it creates some publishing pages based on these layouts.
My problem is that once I create a site based on this definition the resulting publishing pages are not editable. Also in the site definition one of the pages have a webpart added to one of the layouts containers that it should be based on, but when I try
to open the page in the browser I get the error: "One or more Web Parts on this page references a zone that doesn't exist".
It appears that either my layouts or publishing page declarations are incorrect, but I cannot for the life of me figure out where. Any help would be greatly appreciated. I've been googling this problem for well over a week now :S
The module part of my site definition:
<Module Name="Homepage" Url="$Resources:cmscore,L
I would like to present users with unique content based on certain conditions being met as they land on the home page (default.aspx). The condition logic will be in the VB code behind Page Load event. The content will go in a content placeholder as specificed from the master page.
However, the content change wouldn't be something small (ie making a panel or label visible or not) but rather it will be different HTML, Divs and databound gridview content. The HTML content will be stored in the database.
Can someone point me in the right direction for best practices on how to accomplish this?
I'm working with a console application to generate my sites and subsites (hierarchy). And i've got a problem with a generated spmetal class.
this doesn't work:
static void Main(string args)
string SITE = string.Concat("http://", Environment.MachineName);
I have a content type layout. After I changed it, it had no effects on existing pages.
When I add new page with this content type it has latest version.
How can I fix this? I want my current pages to use new content type layout.
I try to use the "Redirect Page" Layout to allow page to redirect to internal (relative url) content.
I ask users to put the URL in relative form: /doclist/docs/myfile.docx but when saved, the value takes the complete domain.
Then when we access the page using multiple URLs, the url is absolute and users can't access content (since I have one URL private for edition and multiple for reading).
Do you have any idea how I can fix this issue?
One of our content managers has added about 10 new web pages but has used the wrong page layout. The site that these pages are in has 3 options of page layout that can be used. They are:
(WDC Article) One Column-Std
(WDC Article) Two Column-Std
(WDC News) Public Notices and News
As you can see, there are 2 content types within the site. The content manager has used the "(WDC Article) One Column-Std" page layout instead of the "(WDC News) Public Notices and News" page layout.
I have tried to edit the page layout via the 'Page Settings and Schedule' area but I only get the "(WDC Article) One Column-Std" and "(WDC Article) Two Column-Std" page layout options - there is no option to select "(WDC News) Public Notices and News".
I have tried to change the page content type from WDC Article to WDC News so I will have the "(WDC News) Public Notices and News" page layout option but it keeps reverting back to WDC Article or I get an error.
Any ideas of how I can change all pages that use "(WDC Article) One Column-Std" page layout to "(WDC News) Public Notices and News" page layout (the correct layout)?
we've created a layout page that contains the Rich Text Editor web part. But the client requires a web part that allows the embedding of audio/video files. The Rich Text Editor strips out the objects when we try to embed them.
I've used the Content Editor Web Part to add audio and video files (by manually adding the web part to the page), but I can't find the definition for that web part to include it in the layout page so that the client doesn't need to manually add the web part
themselves to every page that requires it. (Which could be many pages.)
Any help would be appreciated.
I am trying to build a custom page layout which should have the following web parts:
2. Doc Library
3. custom list items
And the data in these web parts should be from the site in which we create this page. For example, if we try to create a page in site A, then the announcements displayed should be from site-A, doc lib that is in site-A...
And I am trying to insert a content query web part in the page layout using sharepoint designer, and modify the query to insert the announcements list in the site. But how can I query to pull the data from corresponding site.
Thanks for the help.
I usually work with windows forms, and am just starting to work with ASP.Net, so appologies if this is a dumb question!
I have a master page which has a search button on it. The results of this are built up using a Linq statement and if there are any results, I want to display the results in a contents page.
On the masterpage, I have the following code:
Public Overridable ReadOnly Property SearchRes()
Private Sub DoSearch()
'some code to get a linq result
If res.Any Then
_res = res
LabelNoRes.Visible = True
On the SearchResults.aspx page I have this code.
Dim m As pxSite = CType(Page.Master, MasterPage)
If m.SearchRes IsNot Nothing Then
Label1.Text = "Results found = " & m.SearchRes.Count
m.searchRes is always nothing.
What am I doing wrong here?
Here is the content page:
Edited by Nancy Michell
MSDN Magazine July 2005
Master pages in ASP.NET 2.0 solve a problem many Web developers have been solving on their own with a variety of techniques for years - providing a single master template for an entire site. This article covers the details of master pages, discussing their usage and implementation and how they are a natural evolution of custom techniques developers are using today.
MSDN Magazine June 2004