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


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


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

If you want it to be easily maintain you should add a Content editor webpart to the page, and add the text in the webpart. (More here http://office.microsoft.com/en-us/sharepoint-foundation-help/using-the-content-editor-web-part-HA101794745.aspx)


3

in your page make sure there is no reference to core.css.... issue is due to masterpage which has that reference that the page your using could be referencing the masterpage. several methods: 1) if its referencing a masterpage than make a custom masterpage that is almost the same only that it doesnt contain the core.css reference. 2) within your css add ...


3

You can easily add a content editor webpart and add in your CSS in the HTML editor. Or you can add your CSS to a text file, then using a content editor webpart, you can reference that text file and it will include the css in that page.


3

The 'Edit Source' dialog frequently modifies the source that you enter before saving it to the page. You'll often find that custom classes, styles, spacing, markup, etc. are changed/modified/added/removed by SharePoint as it attempts to avoid possible conflicts. Simple solution to your scenario (a single page where you want some minimal customization) is to ...


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

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

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

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

I fixed it after wasting frustrating hours on this ! Its quite easy but doesnt make sense. Just add the HTML 4.1 (not HTML 5 - it wont work) char encode tag to the additional pagehaed placeholder, and it works like a charm. Make sure that you've tried the other solutions, may it's the result of a combination. Fact is, that it is already included in 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 ...


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

When entering HTML content into a SharePoint page or web part, it will always modify the markup using SharePoint's black box. There is, however, a workaround that might work for you: 1) Use a Content Editor web part (you can insert one into regular page content or a web part zone) 2) Put all of your markup in an HTML or TXT file stored in a document ...


2

I like John-o's answer, but if the HTML is simple enough that it won't be modified by SP, then go ahead and add it to the page. But my preference would be to add it via a content editor part, simply do to the fact that it makes it easier for other developers to figure out how the page was changed later on. (Meaning, if I am responsible for editing a page ...


1

May your problem is caused by MDS (minimal download strategy). Since your code is on the page but is not interpreted again, you have to attach it to the page lifecycle. For example with JQuery: $(function () { ExecuteOrDelayUntilScriptLoaded(function () { if (typeof asyncDeltaManager != "undefined") ...


1

You can use JavaScript to read and parse your Excel files (check js-xlsx for XSLX files and js-xls for XLS files, and there are some other librairies on the Web). Of course these files must be on the same domaine (so if you work on http://my.website.com then the Excel files must be also located under http://my.website.com). Once you read/parse them, you can ...


1

You mean that?!? <div id="suiteBarLeft"> <div class="ms-table ms-fullWidth"> <div class="ms-tableRow"> <div class="ms-tableCell ms-verticalAlignMiddle"> <div class="ms-core-brandingText"> SharePoint </div> </div> <div ...


1

You can search for a tool that can automatically crawl and download all content, convert into html and package it. Search for keyword like "website replica", "website archive", "website download manager" etc.


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

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



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