Tag Info

New 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>


0

You should remove the code blocks on your copy of the search result page layout, and it should work. See http://techmikael.blogspot.de/2014/07/custom-search-result-page-layout-in.html


1

What we do is divide the Page Layout using WebPartZones. We then add Content Editor Webparts on to the Page, there we can link the image using "a" tag, Here the admin can go to the edit mode and adjust the images and links in Edit Mode also


0

What you can use are Promoted Links. https://www.youtube.com/watch?v=cUJ5oRKwTyU It's possible to allow users to edit/add the 'icon' but it might be a bit cumbersome. Try it out, maybe it'll help you. M


0

Usually you can have the image relative to the screen page. Just use the content editor to also insert a tag to allow that image to be 100% width, display block, and set a max-height, then it should shrink based on the browser's size or resolution. <style> .imgbanner { display: block; max-height:95px; width: 100%; height: ...


0

If you are using content editor you can try JavaScript for image resize by resolution. I recommend adding JS into a html file and calling that file into Content editor. For image resize using JS check this link http://stackoverflow.com/questions/4572621/auto-image-resize-based-on-browser-window-dimensions


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 ...


0

First, ensure that you are at least a Contributor on the site collection you wish to edit. If so, navigate to the site and click [Edit] in the top right hand corner. If you click into the rectangle that represents a part of the body of the page, you should be able to enter text. Remember to check in your changes. :) Edit: After reading your post again, ...


0

Snippets are created for all fields of the Content-Type, if you are using site columns and a Site-Content-Type added to the pages-library.


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 ...


0

you cannot edit a page in SPD which has a page layout attached. you will need to edit the page layout, or copy the markup from the page layout to the page itself using "detach" option. more: http://alstechtips.blogspot.se/2014/01/sharepoint-designer-2010-this-page.html


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

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 ...


0

In regards to adding a page title directly on a html page layout, the following code works when you place it anywhere within the content placeholder PlaceHolderMain. <!--MS:<SharePoint:FieldValue FieldName="Title" runat="server"/>-->



Top 50 recent answers are included