Tag Info

Hot answers tagged

1

Done with below code. Use InheritDefaultPageLayout method instead of IsInheritingDefaultPageLayout property. $pweb = [Microsoft.SharePoint.Publishing.PublishingWeb]::GetPublishingWeb($subsite) $pweb.InheritDefaultPageLayout(); $pWeb.Update();


1

You can add the InputFormTextBox : <SharePoint:InputFormTextBox runat="server" ID="idRichTxtBox" Rows="10" RichText="true" TextMode="MultiLine" RichTextMode="FullHtml" AllowHyperlink="true" ></SharePoint:InputFormTextBox>


1

Sounds like you want to modify the "Description" box on things like Columns, Lists and Sites. This will display on the top of list views, and next to fields on list edit forms. Additionally: You said "above the file listing", so this suggests you want it shown on a Document Library, go into Library Settings, click "Title and Description" and you'll be able ...


1

If you have the on-premise version, then yes you can modify it. It's an Application page located in the _layouts folder, so it is accessible. It has some inline C# code which handles grouping etc. which you can modify. Take a backup of it before you start tinkering with it.


1

I found out that I need to use another control to achieve the results I wanted. With this snippet inside the page layout (eg inside the PlaceHolderPageTitleInTitleArea placehoder) it renders me the path nicely to the current page/element: <h1 id="pageTitle" class="ms-core-pageTitle"> <!--SPM:<asp:ContentPlaceHolder id="PlaceHolderSiteName" ...


1

I don't believe there is a "best" place for custom CSS. It depends on what are your options, really. Microsoft tends to tell you to create CSS files in the Style Library of the root site (based on the many customization tutorials they have). If you can/need to deploy a solution, you can use the hive and unghost them if you need using SharePoint Designer ...


1

Use the following code to retrieve the file contents as string in your feature activation code: SPWeb web=(SPWeb)properties.Feature.Parent; string fileUrl="/_catalogs/masterpage/PageFromDocLayout.aspx"; string pageFromDocLayoutContent=web.GetFileAsString(fileUrl); Then do some modification to the file contents as you wish. According to your ...


1

Here is one approach I would take just to keep things as they are: If you want to remain true in using snippets as they are presented, simply load that value onto your custom .html page layout or .htm master template. Wrap it in a div element that has either a unique id or unique class name. Then from your custom java script file, modify the DOM based on ...


1

The same error happened to me yesterday! I couldn't find any pages using my layout, so this is how I fixed it. I created a folder called "DeleteMe" I moved my layout into that folder. I edited the properties of the bad layout. I changed the type from 'Page Layout' to 'Design file' The layout stopped showing up as an option. You might be able to check it ...



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