Questions tagged [snippet]

A snippet is an HTML representation of a SharePoint component or control such as a navigation bar or a Web Part. By using the Snippet Gallery in Design Manager, you can quickly add SharePoint functionality to your HTML master page or page layout.

2
votes
1answer
561 views

SharePoint Online Communication Site-Code Snippet Web Part

I am trying to use the code snippet webpart on a SharePoint Online Page. In order to test, I have written a single Header Tag Heading but for some reason it doesn't render on the page. It only shows ...
1
vote
1answer
20 views

Adding to Content Query Snippet

Can anyone tell me if it's possible to edit a content query HTML Snippet. I am creating a page layout in SharePoint designer, and a using the snippet editor to create the Snippet code to drop into ...
1
vote
0answers
78 views

Note Board web part snippet for adding to the page layout

I am working on a custom page layout where I want to add the note board web part. The web part should be added dynamically on the page that would be created using this layout. I have used the ...
1
vote
2answers
281 views

Sharepoint javascript not working AND still script still displaying on web part

I'm attempting to insert a chatbot into a Sharepoint 2010 (or 13 - not sure) page via javascript that: waits 3 seconds after page loads then pops up a chatbot iframe It works perfectly as designed ...
0
votes
1answer
110 views

HTML Snippet code WebPart “Find by Document ID” gives an error “One of the properties of the Web Part has an incorrect format”

I want to add web part to my custom home.aspx site, and when i put the code generated from Design Manager HTML snippets i get an error saying: One of the properties of the Web Part has an incorrect ...
1
vote
0answers
39 views

Adding picture library snippet to custom master page

I have created a custom master page and i want to add picture library snippet to the page but i keep getting this error,note i done some research which keep saying to keep all URL field blank,in my ...
1
vote
1answer
270 views

Create new item inside dialog box by using the current site url

I already insert a snippet to create a new item inside a dialog box with this code: <script type="text/javascript"> function displayLayover(url) { var options = SP.UI.$create_DialogOptions();...
1
vote
2answers
662 views

Snippet Editor in Page Layout

Having created a new page layout, added a webpartzone and a script editor snippet by snippet manager to it. Now I'm wondering how to add snippet code to the snippet editor in page layout? Is this ...
1
vote
1answer
78 views

Generate a snippet from aspx page layout sharepoint 2013

I am working on a site in sharepoint 2013 and want to generate webpart snippets from some content query webparts from several page layouts. I went to the design manager in hopes of being able to do ...
0
votes
1answer
66 views

HTML Fields in Edit Mode Help

So this is what I have done, I have created a menu on one of my SharePoint pages using a custom html list and CSS to make it look nice. I have then taken that HTML file and converted it into a master ...
2
votes
0answers
46 views

Can I Modify the Output of SP2013 Field Values in Snippets or Page Layout?

I would like to know if there is a way to modify the output of page fields in SharePoint 2013 from within a snippet or within the page layout. I have a field of type Hyperlink or Picture. I want to ...
0
votes
0answers
89 views

Open Table of Contents Web Part links in new tab

I am using Table of Contents web part snippet in my master page. It is showing links from Structural Navigation as expected as per the target audience. For some of the links I have set them to open in ...
0
votes
2answers
197 views

How to get Dropdowns in Structured Global Navigation Menu on Publishing Site

I have the global navigation set at Structural Navigation - showing both subsites and pages. But the Top Navigation snippet I used from Snippet Gallery is not displaying the dropdowns at all. I am ...
0
votes
1answer
562 views

Drop down not working in Top Navigation snippet

When I try to add top navigation snippet into my master page, the drop down functionality which works OOTB isn't working. The same you can see in the following screenshots:- Case 1:- Case 2 :- ...
0
votes
1answer
354 views

How can I create a Content Field in Page Fields of Snippets Gallery?

Currently I am building a new page layout using an enterprise wiki setting. I have the following "Content Fields" in my choice of "Page Fields" under "Snippets Gallery" or "Design Manager". I ...
1
vote
0answers
648 views

How to find the FieldName of a Page Field in SharePoint 2013

I am creating a custom Layout page with snippets generated in the Snippet Gallery. When a "Page Field" snippet is generated, it looks something like this: <div data-name="Page Field: Title"> &...
0
votes
2answers
708 views

Disable Edit WebPart and/or Snippet link in a Script Editor Web Part on SharePoint Page?

I know it can be done with client side coding, but maybe there is a built in way to do this in SharePoint 2013. I have a web part I share with other sites, but do not want site administrators seeing ...
1
vote
1answer
60 views

Use “Site pages” web part as a code snippet

The site I am running has several sub sites with individual themes for colours etc. Each subsite has a section at the top for the in site links, because the main navigation is consistent on every ...
0
votes
1answer
287 views

unable to attached a custom CSS on a site page using “code snippet”

I have added a new aspx site page inside my team site and I want to reference a custom style sheet inside this site page only. So what I did is I edited the page then I chose to add a code snippet, ...
2
votes
1answer
1k views

Using Top Navigation Snippet with Current Navigation Term Sets to Get a Static Current Navigation Menu

I've seen a few posts asking similar things but nothing I can use. I am working with a SharePoint 2013 publishing site with custom master pages and layouts. I have a vertical navigation which shows ...
0
votes
1answer
324 views

Html in Snippet not showing

I've created some Rollup Details site columns and include them in the page layout. Then i found them in the snippet gallery and copy them into the Edit Mode Panel. Exactly like how it's been done to ...
2
votes
1answer
1k views

Settings.aspx different navigation structure in SharePoint 2013

I have following top navigation snippet (default top navigation snippet) placed inside HTML Masterpage for SharePoint 2013. <!--SPM:<SharePoint:AjaxDelta id="DeltaTopNavigation" BlockElement="...
0
votes
2answers
787 views

Quick Launch Vertical Navigation Not Displaying In Internet Explorer

spent 2 days on this and can't work out what's happening. I'm using Sharepoint 2013. I added a vertical navigation to a page layout using the snippet - as I have working fine in other sites. For some ...
0
votes
1answer
256 views

Use page field data in my script/snippet

I am using the following code to display a Google map in a SharePoint 2013 code snippet. <style> #map-canvas { width: 100%; height: 500px; } </style> <script src="https://...
1
vote
1answer
69 views

SharePoint top navigation snippet public links

My SharePoint Web Application has the following url(internal): http://mywa:85/sites/kes Because it's hosted in a Azure Virtual Machine, I need the following url to access it from outside(public):...
1
vote
1answer
247 views

Web-part snippet to page layout

I would like to add a web part snippet to a page layout. Unfortunately I see instruction about adding a web part zone (snippet), but not a specific web part going to all pages. MS suggests "add Web ...
0
votes
2answers
118 views

Customizing EditModePanel in SharePoint 2013

Is there any way to edit the content shown in the EditModePanel in SharePoint 2013? I am editing a wiki that provides documentation for our company's application. As such, I am writing a lot of code ...