Hot answers tagged

17

Both the description and the solution of your issue can be found here : Unable to Open PDF Directly from SharePoint 2010 ([Link edited on 11/20/2013]. Basically, it's a security feature (that can be disable, if you accept the implication), that prevent some files to be displayed in the browser directly. Typically, what would prevent someone to put some ...


8

Check http://sharepoint.stackexchange.com/a/52877/35604: <script type="text/javascript"> function Custom_Submit(command) { SP.Ribbon.PageState.Handlers.showStateChangeDialog(command, SP.Ribbon.PageState.ImportedNativeData.CommandHandlers[command]); } </script> <input type="button" onclick="javascript:Custom_Submit('...


7

There's not a huge difference for all of them. 3 out of 4 of them are server-side controls. And the SharePoint:InputFormTextBox and wssawc:InputFormTextBox are the exact same, only the prefix namespace (i.e. SharePoint, wssawc) is the difference. SharePoint/wssawc:InputFormTextBox has built-in co-operative field validation, the others don't. That's the ...


6

What you are looking for is called "Reusable content". The following links will help you on your journey to wisdom: Use reusable content SharePoint Reusable Content SharePoint 2010 Reusable Content Bear in mind that Reusable Content is only meant for HTML content or other content and can only be used on certain pages - just give it a go and see whether ...


6

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


6

Add an id: <pre id="myId" .... And then hide it with jquery: addNewTest = function() { $('#myId').hide(); }); or without jquery: addNewTest = function() { document.getElementById('myId').style.display = 'none'; });


5

myQuery.RowLimit = 0 I think if I'm correct: 0 = unlimited Hope this helps. :)


5

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 : http://msdn.microsoft.com/en-...


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

I haven't tested this, but I would think you can add it with a javascript maybe. You already have the _spPageContextInfo on your sites. <script type="text/javascript"> document.write('<a href=\"'+_spPageContextInfo.webServerRelativeUrl+'/page.aspx\">link</a>'); </script> That's just an example, probably not the best way to add js ...


4

I could not find any good way to do it with IE8 or IE9, so I utilized the OOB AttachFile.aspx form: (I am using SPService to get query string & I am adding input control dynamically with JQuery) function readyCall() { //Get Query String var queryString = $().SPServices.SPGetQueryString(); //Tasks List ID (i.e. 0A347169-CE79-4B7F-B561-...


4

You can't change the .master file when it's bound like this, you can only edit the .html file. It will re-generate the .master when you save the .html. This is due to the Design Manager packet in SP2013. Here's the MSDN article on this feature set: http://msdn.microsoft.com/en-us/library/office/jj822363(v=office.15).aspx


4

The issue is that you should copy seattle.html which will auto create a .master page for you, and there is a link between the files. To resolve the issue, create a copy of seattle.html Now you have both a seattle_copy(1).html and seattle_copy(1).master. Next rename seattle_copy(1).html to for example test.html. A pop-up appears asking you to update ...


4

A ductape patch is adding a negative margin-top <div style="margin-top:-200px"> YOUR CONTENT </div>


4

You wanna target the specific webpart where you wanna change the link color, otherwise every link on the page will change font color. Use F12 Developer tools to find the ID of the specific webpart you wanna change the link text for. Insert the name/ID instead of my example (#WebPartWPQ5) and then use the CSS i provided below (SP2013). <style type="text/...


4

Find id of that WP. Something like WebPartTitleWPQ4. Edit that page and insert script editor WP and add <style> <style> #WebPartTitleWPQ4 h2 { background-color: #000; color: #fff; } </style> EDIT Find where is title. For ex. <style> #WebPartTitleWPQ4 h2 { background-color: #000; } #WebPartTitleWPQ4 h2 span { ...


4

There are a number of ways to accomplish what you're describing: If your environment allows for it, a SharePoint hosted App would be a great solution that would incorporate all the look and functionality of SharePoint while providing a shell for your content. You've referenced not using a Content Editor Web Part, but that approach would do very well given ...


3

You should be able to provision html at the root of the site by a FEATURE that uses Module element. From VS.NET add project item of type Module, replace sample.txt with your html file and make sure the elements.xml looks like below assuming you have sample.htm file abd your module name is RootModule. The name of module and html file can be different in ...


3

If the file isn't expecting to be in a document library, you can use SharePoint Designer to upload the file to the root of the web site, and also set this page to be the HomePage for the site within SharePoint Designer. SharePoint Designer is a free product available from Microsoft, here: http://www.microsoft.com/download/en/details.aspx?id=16573


3

If it is SharePoint List form, you can simply make the fields as Required and SharePoint will handle it... But if its some other form, which I think it is... you can use JavaScript like this: <script type="text/javascript"> function onSubmitValidation() { if (TrimAll(document.getElementById("field1").value) == "") { alert('All fields are ...


3

Take a look at the Page Viewer web part (http://office.microsoft.com/en-us/windows-sharepoint-services-help/about-the-page-viewer-web-part-HA001160926.aspx ). It uses an iframe.


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

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.


3

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


3

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


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

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.



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