14

Add <SharePoint:FieldValue FieldName="Title" runat="server"/> for Page title or <SharePoint:ProjectProperty Property="Title" runat="server" /> for Site title in one of the ContentPlaceHolders in the PageLayout, for the body in the <asp:Content runat="server" ContentPlaceholderID="PlaceHolderMain">


7

SP.File.checkOutType property gets a value that indicates how the file is checked out of a document library Get file checkout type via REST $.ajax({url: "/_api/web/getFileByServerRelativeUrl('" + pageUrl + "')/checkOutType", headers: { "Accept": "application/json; odata=verbose" }, success: function(data) { if(data.d....


6

There are a few things that control this in site settings --> navigation. Managed Navigation -- use a term set for navigation Add new pages to navigation automatically -- a new item is added to the termset for each new page Create friendly URLs for new pages automatically -- This is what you're concerned about - the page shows up in the URL without the ....


5

I was facing the exact same issue and resolved it by setting ReplaceContent="true" in the element.xml file of the module as below <File Path="MasterPageModule\MyMasterPage.master" Url="MyMasterPage.master" Type="GhostableInLibrary" ReplaceContent="TRUE" Level="Published"/> Also you can get it here https://blog.lekman.com/2013/06/page-layouts-and-...


5

You can use the Client Object Model to get a reference to the file and then use the checkOutType property to see if it has been checked out. SP.File.checkOutType property


5

They're both working, thanks! I've found another way, a little faster because it doesn't need to call the server back again, but it can only to determine if the file is checked out by the current user, not by a generic user. I've found a way to achieve this, tested on Sharepoint 2013. Just add the following script inside a script webpart after putting ...


5

As a workaround try to rename yourhtmlpage.htm to yourhtmlpage.aspx then it will be displaying in the browser.


5

When a page is checked-out, the check-in and publish works as follows. Check-in: Increments the page version. The new version is visible only to users who have Full Control access and above. Publish:: Increments the page version by check-in automatically and visible to users who have Read access and above.


4

I'll pre-fix this with that fact that I'm not a "Dev". But I have enough knowledge to be dangerous. If these are static HTML pages, you can just add them to any document library and they will be rendered by SharePoint. If you want to automate the upload you can use PowerShell or even the REST API for SharePoint. If you want to keep the SharePoint ...


4

Without code On library click Create new view based on for ex. All items. Check columns you want to view and sort it how you like. Under Filter click Show items only when the following is true Approval Status --- is greater than --- 0 << this is for all unpublished(Rejected, Pending, Draft) Click OK For Published view create one more view with ...


4

The answer to this question is: No, it is not possible to create another library with the same functionality as Pages on a publishing site.


4

Your speculation is correct, the example provided in the question is intended for creating a wiki page and not enterprise wiki publishing page. Since you mentioned in your question JavaScript Object Model (JSOM), the below example demonstrates how to create enterprise wiki page via JSOM in SharePoint 2013. How to create enterprise wiki page using ...


3

I would say reasons might be due to a combination of facts: you are actually creating a new instance under "System account" - which could practically mean executing in the context of another user. - Use SystemUpdate instead to avoid Version and other automatic column updates - Consider using Synchronous on the receiver declaration (Elements.xml) to avoid ...


3

You can provision publishing pages using modules. Add a new module to your project, and add the module to a feature. Add a file to the module (in this case named TemplatePage.aspx) with the following content: <%@ Page Inherits="Microsoft.SharePoint.Publishing.TemplateRedirectionPage, Microsoft.SharePoint.Publishing,Version=12.0.0.0,Culture=neutral, ...


3

You can do it using Design manager, using the following snippet: <h1 id="custom-pagetitle"> <!--MS:<asp:ContentPlaceHolder ID="PlaceHolderPageTitleInTitleArea" runat="server">--> <!--CS: Start Page Field: Title Snippet--> <!--SPM:<%@Register Tagprefix="PageFieldFieldValue" Namespace="Microsoft.SharePoint.WebControls" ...


3

There are various ways: // Stop Caching in IE Response.Cache.SetCacheability(System.Web.HttpCacheability.NoCache); // Stop Caching in Firefox Response.Cache.SetNoStore(); or you could use the @Output property: http://msdn.microsoft.com/en-us/library/ms178606(VS.80).aspx http://msdn.microsoft.com/en-us/library/hdxfb6cy(v=vs.80).aspx Here you can find all ...


3

I had the same issue on a Publishing Page Libary. I set the toolbar to No Toolbar on the AllItems.aspx page. Removing the toolbar causes the page to stop processing. Browse to the AllItems.aspx page and edit the page > edit web part > check tool bar type. Set to Full Toolbar and save. This should resolve the issue.


3

Here are a few more differences I've encountered when working with both Wiki Pages and Web Part Pages, from a more practical standpoint: Wiki Pages Can place web parts inline with text and freely drag and drop them anywhere, including, for example, within cells of an HTML table, providing a means for very precise layout. Can choose from 8 "Text Layouts", ...


3

If you are doing this in code behind, try playing with SPContext.Current.Item I believe the values you needs would be SPContext.Current.Item["Editor"] and SPContext.Current.Item["Modified"]


3

Probably many people would say to use the DateTimeField and set DateOnly="True", like this: <SharePointWebControls:DateTimeField runat="server" DateOnly="true" FieldName="Created" id="CreatedOn"/> But that tends to create problems and throws errors. What I would do is to use inline code: <%=SPContext.Current.ListItem["Created"] != null? (new ...


3

Josh - strangely enough, I am doing the exact same thing right now, and have the same concerns. I have multiple Department sites, and each department can create and post Articles (Article Pages) to view and read once in the Department site. On top of this, there are other page types. I have opted to forgo Folders in the Pages Library, as it buys me ...


3

I can't believe someone has not thought of METADATA yet ;) (just kidding). No, but really, why go to folders ? Why not sub-content type the build-in Page one and add a field that maybe lists all the options that he would think of navigation wise ? If it's hierarchical, you might want to consider to use a termset instead ? This way you can still group and ...


3

In the SharePoint projects I have worked on I have used a few different ways to localize page content. I think the simplest way for you will be with an EncodedLiteral: <SharePoint:EncodedLiteral runat='server' text='<%$Resources:wss,language_value%>' EncodeMethod='HtmlEncode' /> For the RESX files, in the SharePoint project I create a ...


3

you can add security trimmed on custom masterpage which only an authorised user will be able see the ribbon 1) Open your SharePoint master page 2) Locate this line: <div id="s4-ribbonrow" class="s4-pr s4-ribbonrowhidetitle"> 3) Change it to: <div id="s4-ribbonrow" class="s4-pr s4-ribbonrowhidetitle" style="display:none"> 4) Now find the ...


3

Add below script ​​ <script type="text/javascript"> SP.SOD.executeFunc('sp.js','SP.Utilities.Utility',uploadedFunc); SP.SOD.executeFunc('sp.core.js','SP.Utilities.CommandBlock', uploadedFunc); function uploadedFunc() { alert("uploaded"); } </script>​ The SP.Utilities.CommandBlock does not get loaded on View mode of page.


3

Based on your Head Question How to put SharePoint Document Library on team site? and what I understood you need to show Doc library at Team Site page not within Site Contents. So the answer should be as the following : Edit your page at your Team Site. From the above Ribbon > Insert Tab > Add web part or App Part. From Apps Category > Select your Document ...


3

If you can deploy your page layout with a sharepoint solution it would be quite easy, you can add your webparts to the elements.xml file which includes your page layout: <Elements xmlns="http://schemas.microsoft.com/sharepoint/"> <Module Name="PageLayouts" List="116" Url="_catalogs/masterpage"> <File Path="PageLayouts\UAGSearchPage.aspx"...


3

You can have only one Pages library per site; this library is king-of hard-coded in the product. But why don't you simply create folders/subfolders in the main Pages library, to sort your articles?


3

Open your page which is having error and add ?Contents=1 to the end of the page’s URL. If the URL already has a “?” then add this instead to the end of the URL: &Contents=1 Example: https://YourWebApplication/sites/SiteName/Pages/PageName.aspx?contents=1 Now you can delete the WebPart


3

You have an option of Secondary recycle Bin in SharePoint. Go to Site Settings -> Site Collection Administration -> Recycle bin. if it is not appearing the deleted page. click on "second-stage recycle bin" link appearing as shown in below picture. If you are not able to see still in that secondary recycle Bin. Your file permanently deleted.


Only top voted, non community-wiki answers of a minimum length are eligible