New answers tagged

0

I realize that I'm a bit late to the party, but I figured out something that helped me greatly with the same problem mentioned above. I used the same snippet, but discovered that it did not render from HTML to aspx properly. <PublishingWebControls:RichImageField FieldName="PublishingRollupImage" runat="server" ...


1

<asp:Content contentplaceholderid="PlaceHolderAdditionalPageHead" runat="server"> <PublishingWebControls:EditModePanel runat="server"> <!-- with the built-in control --> <SharePoint:CssRegistration Name="somepath/somecss.css" runat="server" /> <!-- classic --> <link href="<%$ ...


0

Using Elements.xml to provision the webparts ended up working. You still need to use an XsltListViewWebPart, though you add it through a AllUserWebPart. There is a property of the XLVWP that accepts a default view, list name, etc.


1

I see that all default webpart page layouts reside in below layout path C:\Program Files\Common Files\Microsoft Shared\web server extensions\14\TEMPLATE\1033\STS\DOCTEMP\SMARTPGS\ So in this path I will add my one page layout.Then add below code to create page based on the layout. string newFilename = textbox1.text; string templateFilename = ...


0

After much research I have found below details with which we can create a custom wiki page template. If we dive into the Wiki content type (I used sharepoint inspector to easily see the properties), you will see that when you create a new page, the "CreateWebPage.aspx" page is called on the layouts directory. So whenever you create a new item (wiki page) ...


0

Try this: Go into Site Settings. Under Site Collection Administration, select SharePoint Desginer Settings. Make sure "Enable Customizing Master Pages and Page Layouts" is selected. Then open SharePoint Designer and select All Files on the left menu. Choose "_catalogs" and then "masterpage." Copy one of the master page's HTML and Master page file (for ...


0

"Publishing" can mean different things to different people. If by "publishing" you mean "sharing" then sharing documents is as easy as uploading them to one or more document libraries that your users have access to. What SharePoint 2013 brings compared to previous versions is the ability to drag-and-drop files into libraries. With pages, SharePoint has ...


0

Actually problem is that, Multiline puts uses "Environment.NewLine" and which in returns gives "\n", this is not rendedred correctly in html, and thus result in straight text in display mode. You will need to replace this new line with "", then it should work fine.


-1

<AllUsersWebPart WebPartZoneID="Middle" WebPartOrder="3"> <![CDATA[ <?xml version="1.0" encoding="utf-8"?> <WebPart xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/WebPart/v2"> <Title>Middle web part</Title> ...


0

When creating a custom page layout, the following block of code is added to you page: <!--MS:<asp:ContentPlaceHolder id="PlaceHolderPageTitleInTitleArea" runat="server">--> <!--SPM:<SharePoint:SPTitleBreadcrumb runat="server" RenderCurrentNodeAsLink="true" SiteMapProvider="SPContentMapProvider" ...


0

I faced the kind of similar issue today, the problem was in the Custom page layout.. I was using <SharePointWebControls:FieldValue to render the HTML field.. I replaced it with <PublishingWebControls:RichHtmlField and the Web Parts started showing on the page.



Top 50 recent answers are included