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.

15 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2
votes
0answers
51 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 ...
1
vote
1answer
31 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
157 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
0answers
40 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
0answers
794 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"> &...
1
vote
1answer
61 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 ...
1
vote
1answer
271 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
1answer
178 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 ...
0
votes
1answer
98 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 ...
0
votes
2answers
273 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
681 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
2answers
840 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 ...
0
votes
2answers
1k 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
260 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://...
0
votes
1answer
320 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, ...