Tag Info

Hot answers tagged

5

First of Publish your data for public view you need to enable Anonymous access for this announcement and news lists. Now Go to List -> List setting -> RSS Setting -> checked required columns -> click OK Now open Announcement List RSS Feed Link form List Ribbon. using this link you can get data in to your HTML site. In HTML site you can use third party ...


4

The header and footer (the chrome) of SharePoint and most Asp.Net websites is defined in a master page. For SharePoint 2013 this is by default the seattle.master. My tip is to create your own master page by taking a copy of the Seattle.master, or using a Delegate control to insert your control. Create SharePoint master page : ...


3

I don't know about sending emails plaintext, but to strip HTML you edit the properties of the send email action. Then edit the HTML of the email body directly you can use the string builder (ellipsis).


3

SharePoint doesn't allow for running C# code blocks on content pages. Looking at what you are trying to accomplish, you can go a couple different routes: 1) Use JavaScript to do those calls with the JavaScript Object Model. To get started with that, see http://msdn.microsoft.com/en-us/library/office/hh185006(v=office.14).aspx. 2) Create a custom ...


2

You can get it to work by modifying the masterpage, but things break and its probably not a good idea. However, having said that, there have been a few instances i have seen where guys are trying to get it to work Have a look here for example. There is also a lot more out on the web.


2

The short answer: When working with rich text editors that allow you to modify the HTML source, yes. The longer answer: It can be tricky. SharePoint has a lot of CSS and JavaScript involved to make it look the way it does. Sometimes you'll find that you'll apply a css style and it simply does not seem to work as expected. For this try the !important ...


2

It seems the reference term has changed in 2013. You can add the breadcrumbs in 2013 by adding the following snippet to your master page: <!--MS:<asp:sitemappath runat="server" sitemapproviders="SPSiteMapProvider,SPXmlContentMapProvider" rendercurrentnodeaslink="false" hideinteriorrootnodes="true">--> <!--ME:</asp:sitemappath>--> ...


2

Yes you are right, by default Bootstrap will not run in SharePoint, because SharePoint is overwriting it's CSS. Check http://bootstrapsharepoint.codeplex.com for a running Bootstrap Template.


2

you can do Response.Write, or you can use asp:Literal. var ltlCnt = new LiteralControl(); string divStart = @"<div>"; ltlCnt.Text += divStart; string divEnd = @"</div>"; ltlCnt.Text += divEnd; this.[divOnPage].Controls.Add(ltlCnt);


2

Those are the jQuery expando added attributes. As I understand, jQuery uses these for object caching and avoiding circular references. Also, if you call .html() on a jQuery object, it shouldn't include the expando properties. They shouldn't impact performance in a negative way.


2

Try this code : var field = listItem.Fields.GetFieldByInternalName("Data"); var htmlValue = field.GetValueAsHtml(listItem[field.Id]); divValue.innerHTML = htmlValue;


2

It appears that this has to do with IE9, IE10, IE11 document standards for the client's browser. The problem is in the pickerdialog.master. As the People Picker is using the pickerdialog.master file, you need to add the following line in the head element. meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" Find the pickerdialog.master file in ...


2

Modifying the underlying XSL files worked in SP2010: http://blog.kappasolutions.ca/blog/post/2010/09/12/How-to-Display-HTML-in-Content-Query-Web-Part.aspx Specifically, setting disable-output-escaping to yes in ItemStyle.xsl. ie. <xsl:value-of select="@Something" disable-output-escaping="yes" /> I haven't tried it in 2013 yet, but this article ...


2

This might classify as more of a work-around than a solution, but I used the guid of the view as the webpart id. I decided to look into the content database to see how views are stored. In the stored procedure proc_CreateView I found that views are actually stored in the AllWebParts table with the ViewId inserted into the tp_ID column. So I added the ...


2

Try removing the brackets around the background-color value. It should look like: <style type="text/css"> .ms-bodyareaframe { background-color: #D8D8D8; } </style> If that doesn't work, try adding #d8d8d8 !important


2

SharePoint may re-write your code in the content editor webpart. I suggest you take one of two approaches: In 2010/2013 you can create a txt file and store in a library. I suggest you place your code in that file and use the Content Link property of the Content Editor Web Part. This will avoid SharePoint overwriting your code or doing something funky ...


1

You now have less than 20 items in the lookup list. This is standard behavior for a lookup column. The moment you have 20 or more selectable items in the lookup list, then the UI changes from a simple dropdown to a type ahead combo box.


1

How to render Blogs Body column as Html in CQWP: 1) Open /Style Library/XSL Style Sheets/ItemStyle.xsl file 2) Locate Item Style template (in your example Xsl template named Default) and replace the line for Description slot: <xsl:value-of select="@Description" /> with this one: <xsl:value-of select="@Description" ...


1

I've done this before. The problem is that the #AsynchronousViewDefault_CalendarView is empty when the body loads, then its content is rendered asynchronously. You need to attach the on click handler function to some outer container that you know it's there when the body loads. This is how I did it: _spBodyOnLoadFunctionNames.push("spReady"); function ...


1

I managed to remove a lot of space adding this css code: .ms-rtestate-field { padding-right: 0px !important; } .ms-rte-layoutszone-inner { padding-right: 0px; padding-left: 0px; margin-left: 0px; margin-right: 0px; border-left-width: 0px; border-right-width: 0px; } However I still have 1px of white space on both left and ...


1

Create a new view for your list (either from SPDesigner or the browser UI) and make it the default. Now, in SPDesigner, go to Lists and Libraries > your list > Views > Right click on the new view and Edit file in advanced mode. In Split mode, hover the mouse over the first EmployeeID field value, then click right before it and enter some dummy text (see ...


1

Instead of copying and pasting, you should try going into Insert -> Link -> From Address as shown in below screenshot: This will bring dialog as shown below: This will give you option to write both Text and Link. Also instead of just copying from Excel/Word, you can right-click on the hyperlink and click Edit Hyperlink option.. This will allow you to ...


1

why not convert your html to Master page and that page only apply to your home page. here is the link how to convert it http://msdn.microsoft.com/en-us/library/jj822370.aspx or may be think about to create a page layout... http://msdn.microsoft.com/en-us/library/jj822368.aspx


1

check this blog, to fix the padding issue: http://siderite.blogspot.com/2010/02/css-cellpadding-and-cellspacing.html good info here: http://blogs.msdn.com/b/anjali_chelawat/archive/2009/06/17/9765429.aspx


1

There is a missing opening bracket in this line var Items= xml.getElementsByTagNameNS)?xml.getElementsByTagNameNS("*","row"):xml.getElementsByTagName("z\:row"); after getElementByTagNameNS which should be getElementByTagNameNS() which could be preventing the Items variable from being populated.


1

Have you considered using the Office Web Apps to view the documents? Then you wouldnt need to convert them and potentially lose fidelity. You can embed the word web app in an IFrame and use the WOPIFrame URL to display the document. See here for an example of getting the URL to WOPIFrame.aspx that you will need: ...


1

Use Page Viewer Web Part and then modify webpart's properties and add link to document you want to display. Here's detailed instructions How to Insert a Web Page onto a Site Using the Page Viewer Web Part for SharePoint 2013


1

The problem you are facing is that you are using Modal Dialogs. When using these, you must first complete the interaction with that modal window and then close it. More information here on the concept: http://en.wikipedia.org/wiki/Modal_window OOTB SharePoint uses modal windows and does not provide any other method in Javascript for overlaying other pages. ...


1

It depends on the page. Publishing type pages will typically remove HTML modifications, but Web Part Pages will allow them. To make custom CSS work, put the CSS into a file, upload it to a document library, insert a Content Editor Web Part into the page and reference the CSS file from there.


1

If this is an aspx page you are creating, then you need to do a couple things. First you'll want to go to the style tab in the ribbon and attach the default or custom masterpage. Then you'll need to add the following just below the registration line: <asp:Content ContentPlaceHolderID="PlaceHolderAdditionalPageHead" runat="server"> //code goes here ...



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