Questions tagged [publishing-page]

Publishing pages are available only in publishing sites. In publishing sites, authors and approvers use the publishing feature to create content and then make it available for site visitors. Usually, a publishing site has an approval workflow enabled, so content is reviewed and approved prior to being published.

53
votes
7answers
29k views

How to update custom master page and page layout, which is already deployed

I have a feature which deploying custom page layout. It's done by this code: <Module Name="MasterPageModule" Url ="_catalogs/masterpage"> <File Path="MasterPageModule\defaultTemplate.aspx" ...
18
votes
4answers
26k views

Difference beween wiki page, application page, web part page and publishing page

There are lots places in msdn sharepoint forums and blogs where these terms are used and I am confused between them. Can anybody clarify?
15
votes
5answers
10k views

Replace the Default Page in a SharePoint WebSite

I have been asked to programmatically do the following in a SharePoint 2007 team site collection: Create a website using the OOTB blank site template. (Please note, for project specific reasons, we ...
14
votes
5answers
5k views

RichHTMLField value is not rendered in page

I have a custom page layout created, in which "PublishingWebControls:RichHtmlField" control is added with some default HTML value. When any page is created using the custom page layout created, page ...
12
votes
5answers
79k views

Immediate Redirect page in sharepoint

I want to redirect a sites homepage to a subsites homepage. I can create a page from redirect page layout BUT, i want no waiting for a couple of seconds, i want immediate redirect. How can i achieve ...
10
votes
0answers
253 views

Cross-site publishing of pages library

In the past we have set up cross-site publishing using lists and libraries as described in tutorials like this and this. We have configured search, CSWP, used facets, created managed navigation, and ...
8
votes
4answers
9k views

What is publishing Site or Page and why do we need it?

Article found on this but not in plain English. Anyone else wants to give it a shot with plain (non-lawyer version) English.
6
votes
3answers
8k views

how to determine if a page is checked out? Client side, using javascript?

I need a way to determine if a publishing page is checked out by the current user; I need this because I'd like to put a redirect, if the page is not checked out. Any ideas?
6
votes
2answers
4k views

Adding a Back to Top web part

Is it possible to create a web part that publishing page editors can insert and all it contains is an anchor tag to take the user "Back to Top" of the page? I've added this to the top of the pages' ...
6
votes
4answers
5k views

Using PublishingWebControls:RichHtmlField in application page

I'm trying to use a PublishingWebControls:RichHtmlField control in a custom application page inside SharePoint to use the built in SharePoint WYSIWYG editor. It's almost working but SharePoint has ...
6
votes
5answers
9k views

Copy and paste for images in SharePoint

It seems that whether it's a content editor web part or publishing page, copying and pasting images is a poor user experience in SharePoint. The user needs to upload the image somewhere first, then ...
6
votes
2answers
1k views

Give anonymous access to explicit page in document library

I have the following situation (SharePoint 2010): A document library contains publishing pages. Anonymous access is enabled. The publishing pages are separeted in folders. Now i have the situation ...
6
votes
1answer
673 views

Take a Publishing Page “Offline”

Is there a way to take a Published Publishing Page offline such that it isn't accessible to anonymous users of a WCM website? If you un-publish, the page's most recent version will still be ...
5
votes
4answers
12k views

Getting page title of site in Page Layout

I want to display title of site in Page Layout. How do I do that? Let's say I have a site with 3 pages and on each page I want to display title of my site. Is there a code that I can use in Page ...
5
votes
3answers
5k views

How to get last major published version?

I am trying find exact CAML query, or other possible way in code to find out "The last major published version" (not necessarily the latest)?
5
votes
3answers
4k views

Provisioning Publishing Page Content using a Feature

I'm provisioning a bunch of Publishing pages using a feature, using the template redirection technique. <Module Name="Page-Not-Found" Url="$Resources:cmscore,List_Pages_UrlName;"> <File ...
5
votes
1answer
1k views

SharePoint Bug? Conflict Error when saving a Page with a “Required” DateTime field in the page layout

I've just recently encountered a weird error / bug in SharePoint. Here is the scenario: I have a custom column "Test Date" that is of DateTime field type. The field is configured as required. It is ...
5
votes
1answer
2k views

Sharepoint modifying code and adding .ExternalClass identifier automatically. Any way to prevent?

Afer saving/ publishing Sharepoint keeps changing the following code FROM THIS..... A IMG {BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; BORDER-TOP: medium none; BORDER-RIGHT: medium none} ...
5
votes
1answer
832 views

Declarative WebPart on publishing page

I have made a publishing page layout that has a WebPartZone and a MediaWebPart in the ZoneTemplate. Example below. <WebPartPages:WebPartZone runat="server" Title="Fokusøki Media" ID="WebPartZone1"...
4
votes
3answers
5k views

Page layouts vs. Master pages

When do you create a custom page layout vs. a custom master page for a site? Is it good practice to create custom page layouts only for limited branding of SharePoint 2010? I'm thinking the page ...
4
votes
1answer
356 views

Making global changes to a group of publishing pages

Is it possible to change a property on a group of publishing pages on SharePoint 2010? We have a custom page field called "IntranetContactEmail" that we need to update across one web site. How do you ...
4
votes
1answer
8k views

Iterate over Pages library and get each item's properties

I need to use C# to iterate over the publishing Pages library items on SharePoint 2010 and get their properties. For example, I need to get the item's filename (if it's a file) and detect if it's a ...
4
votes
1answer
1k views

How do i recover deleted page?

I had a page which was not checked in was deleted by someone and also couldn't find it in recycle bin, how to recover such deleted pages?
4
votes
1answer
2k views

Context menu not showing on right click

I don't understand how in SharePoint you can activate a right-click context menu on the rows of a list web part. I have two different pages. In each page I have 4 views. For some reasons (?) in page ...
4
votes
1answer
429 views

SharePoint 2013 Newsfeed Following Publishing Pages

I got a issue with not being able to track changes to a Page on the MySite Newsfeed if im following it. If I follow a document (.docx etc) I get notified when the document has been changed. But not ...
4
votes
2answers
7k views

SPDesigner - This page cannot be edited in SharePoint Designer

What are the reasons that I can't edit a page in SharePoint Designer? I am using a publishing page with a blank web part page layout.
4
votes
1answer
2k views

RichHtmlField showing html markup in display mode

I am trying to render html tags with text in RichHtmlField control in SharePoint. Following is html code. <%@ Register TagPrefix="Publishing" Namespace="Microsoft.SharePoint.Publishing....
4
votes
2answers
148 views

Reducing amount of clicks to create Publishing Page in SharePoint 2007

I have a customer who is using the MOSS 2007 WCM Publishing Site. To create a page in this environment you need to: Select Site Settings | Create Page Fill in: Title page url select a page ...
4
votes
1answer
1k views

Creating pages dynamically through code?

First thing is first, I'm doing this in Sharepoint 2013. I'm not exactly sure what the best approach is to be, so I'm explaining my problem and hopefully people can throw around some terms or ideas ...
4
votes
1answer
361 views

SharePoint : Better Large Pages Library Approach

I'm working on project migration from SharePoint 2007 to SharePoint 2010. The application build on SharePoint 2007 platform was years back and it contains a lots of data (approximately 100GB in total)...
4
votes
3answers
3k views

How to rename a publishing page in code

I'm trying to do a bulk page rename (NB. the file name e.g. default.aspx, not the displayed title) foreach (PublishingPage page in pweb.GetPublishingPages()) { Console.WriteLine(page.Name); ...
4
votes
1answer
3k views

Unable to Edit Web Part Properties in Web Part Zone in 2013

I have a custom page layout that I have designed using Visual Studio. Within it I have several web part zones and I have a zone where I would like users to be able to edit the properties of the web ...
4
votes
1answer
640 views

Default Webparts not rendering in a RichHtmlField on a custom page layout built in Visual Studio [closed]

I have a bit of a conundrum.I've built a Visual Studio solution for SharePoint 2010. It comprises of a custom master page and a bunch of page layout templates. I'veAssembled a master pageAssembled a ...
3
votes
1answer
1k views

Pretty url in SharePoint

The url's on our intranet are pretty, i.e. http://intranet/test, but we want to show full path of the page, like this http://intranet/test/default.aspx I don't know why we get pretty url and have ...
3
votes
3answers
3k views

More than one Pages library?

We have requirements where we need to add multiple pages libraries on a site, but this seems impossible to do via both the GUI and code. Is it all possible / supported ?
3
votes
3answers
4k views

Best Approach for using folders in Pages in Publishing site SharePoint 2013

What I'm looking for is an approach to organizing content pages on a Publishing site whose main contributor will be someone unfamiliar with Sharepoint (let alone SP2013). The Publishing site allows ...
3
votes
2answers
2k views

Is it possible to make a page's publishing schedule mandatory?

As opposed to a page just being published as soon as it's approved - I need to make the schedule (the setting of the start and expiry date) of the publishing mandatory. Can it be done?
3
votes
2answers
2k views

How to add webPart to Page with PowerShell from WebPart Gallery

I want to get my Custom WebPart by name and add into a Page with PowerShell from (Web part gallery): --> Edit Page --> Insert --> Web Part --> Custom WebParts in image are added from Custom ...
3
votes
1answer
1k views

I cannot edit SharePoint 2013 custom page

I have created a custom page and it is deployed as globally.I have created a custom web part then exported the custom web part and added the XML reference in page layout Element.XML file. If I go to ...
3
votes
1answer
540 views

Add Web Part(dwp file) to the Page Layout

I'm Creating Page Layout using SharePoint designer. Using the below code i created Web part zone <WebPartPages:WebPartZone runat="server" Title="ZoneTit" ID="ZoneId"> <ZoneTemplate>&...
3
votes
1answer
4k views

How can I update a publishing page's page layout via PowerShell?

I have a few publishing pages that need a page layout change. The layout includes a Content Editor Web Part pointed to an html file in the site assets folder. The layout changes but the Web Part ...
3
votes
2answers
6k views

Can I edit a publishing page using Powershell?

I have a bunch (technical term) of publishing pages within a single subsite of my site collection that contain a broken link. I'm wonder if it's at all possible to use Powershell to perform a 'global' ...
3
votes
3answers
2k views

Powershell creating Page fails with “No parameterless constructor defined for this object.”

I wrote a Powershell script that creates SharePoint sites and pages based on an XML file to generate about 200 sites and more pages to build a specific structure. The basic steps it does repeatedly (...
3
votes
1answer
862 views

Enterprise Keywords required in Publishing page

I have added the enterprise keyword column to my custom content type that is tied to a publishing page. It works fine editing and publish pages based on this layout unless I set the keyword column to ...
3
votes
3answers
476 views

Page Won't Load jQuery Script After being Published

I'm experiencing an issue where I cannot get my jQuery script to work once a page is published. Based on the answers below, all I need to do is simply run SP.SOD.executeFunc("sp.js", "SP....
3
votes
2answers
175 views

List all pages used a particular “reusable content” item

Our user actively use the OOB "reusable content" function to dynamic update their pages. Each "reusable content" item is applying to 10-20 pages. Let's say one day user is going to remove one of "...
3
votes
1answer
3k views

Adding branded Quick Launch Menu to a 2013 Custom Layout Page

I have build an html master page with bootstrap header and footer, referenced JS and CSS. Not much in the way of snippets apart from a search box in my header. All good Ok, now I have created some ...
3
votes
1answer
1k views

Can I edit a custom page Layout to add 3 new zones

I have a custom branding solution which was written before I started at my current client. Now they want their custom page layout modified, by adding 3 adjacent zones next to eachother. This page ...
3
votes
1answer
476 views

Diffferent methods of retreving site column values

I'm wondering if there are any differences between retrieving value of a site column (RichHtmlField) via PublishingWebControls:RichHtmlField vs getting its value via Container.DataItem? <...
3
votes
0answers
45 views

Build url of publishing page by lookup id

Got a list with a LookupField to Publishing Pages library pointing on "Title" and additional field "ID". I would like to create a hyperlink by CSOM / javascript without querying FileRef on pages ...