Tag Info

Hot answers tagged

13

You can always add ?contents=1 to any url in SharePoint to see what specific webparts that are used in the site/page. Example: 'http: //test.sharepoint.com/Pages/default.aspx?contents=1'


7

In order to view the Closed Web Parts, you just need to do: "Add Web Part" in any Web Part Zone Search for the "Closed Web Parts" category in the Web Part selection menu that appears on the Ribbon Your closed web parts should be right there


6

I think what the OP is after is a way to store information that can be made accessible globally. If it is indeed the case, then what can serve this need are property bags. Property bags are a place to store metadata or properties of your SharePoint sites. The Property Bags are implemented as a hash table consisting of property names and values; they can be ...


6

How to add WebPart client object on page via JSOM function addWebPart(webUrl, pageUrl,webPartXml,zoneId,zoneIndex, Success,Error){ var context = new SP.ClientContext(webUrl); var web = context.get_web(); var file = web.getFileByServerRelativeUrl(webUrl + pageUrl); var webPartMngr = ...


6

I don't know of a configuration setting that will turn off the Add button in the Calendar but you can hide it by placing a Content Editor web part on the page and adding the following CSS to the Content Editor. Be sure to click the Edit Source button in the ribbon and paste it in the HTML Source. <style type="text/css"> .ms-acal-rootdiv ...


6

You cannot open that web part from "Web Part Maintenance Page" again. Instead you have to "Edit Page". Then click "Add web part". From left pane, in the categories click "Closed Web Parts", and then select your closed web part to be restored.


6

Edit page Edit web part Appearance --> Advanced --> Title URL Remove value of field Save If that doesn't do it: place a "#" in the Title URL field If still that is not good enough: place "###" in the Title URL field and jQuery(document).ready(function () { $('a').filter("[href='###']").each(function () { ...


5

Here is a way to do it in sharepoint 2013 in visual studio 2012 1)Create a empty sharepoint 13 solution Farm solution . 2) Add a sharepoin 13 project into it . 3)Add a mapped foder "Resources" to the project . 4)Now you gonna add three resources one for english "testMutliLing.en-US.resx" and one for german "testMutliLing.de-DE.resx" and one default ...


5

You can add a simple label inside of your web part like: <asp:Label runat="server" ID="LabelWelcome"></asp:Label> And in the page load method in code behind set the text of that label like: this.LabelWelcome.Text = "Welcome " + SPContext.Current.Web.CurrentUser.Name; Then just set Chrome Type property to None in web part settings, so web part ...


5

Try to wrap it in {? } {?{searchTerms} (contentclass:STS_ListItem OR IsDocument:True)}


4

Don't worry. The pure use of CreateChildControls is only due to old habits of SharePoint developers due to the way Web Parts was developed in the past. If you prefer to build your web parts declaratively due to the increased productivity then just use that method. The only reason to prefer CreateChildControls is if you need the extra flexibility of adding ...


4

From a user perspective, there is no difference between web parts and app parts. Both add functionality to a SharePoint page. Technically web parts run inside a SharePoint context, and as a consequence may make an entire page unresponsive if the web part fail to load. An App part run outside SharePoint context and displays its result in an iFrame. If an app ...


4

Just hiding/removing +Add button, does not prevent the user from creating calendar Events using Calendar View, since the Events could be created by clicking inside calendar area. So, if you are interested not only in hiding/removing +Add button you could consider the following approach. How to disable the calendar events Example 1 ...


4

The SharePoint WebPart has its roots back from the 2003 version where it inherited directly from Control because ASP.NET had no concept of a web part and SharePoint as in many other cases implemented a lot of the functionallity which was moved into ASP.NET 2.0 in order to allow SharePoint to become a real ASP.NET application in 2007. After ASP.NET 2.0 ...


4

What you're asking is a bit complex to implement, but it's possible. You need to use AssetPickerDialog to get the same behavior as what you've mentioned, to pick up the image from library. I've implemented AssetPicker once, but that's for a different implementation, kind of searching entity from custom database. And that AssetPicker was triggered from a ...


4

You're missing the WebId property: var xlv = new XsltListViewWebPart(); using (var oSite = new SPSite(" http : / / app:3333/ ")) { using (var oWeb = oSite.OpenWeb("/ProxymIT/Direction")) { var oList = oWeb.Lists["AdministrativeNotes"]; //your list name xlv.WebId = oWeb.ID; xlv.ListId = oList.ID; xlv.ViewGuid = ...


4

Try using the same Google RSS feed URL without HTTPS, then it should work. so instead of https://news.google.com/news/feeds?cf=all&ned=in&hl=en&topic=n&output=rss use http://news.google.com/news/feeds?cf=all&ned=in&hl=en&topic=n&output=rss I did a quick test and it worked in SP when using the HTTP URL but not ...


4

The Office Dev Patterns and Practices repo on GitHub has a great sample for provisioning custom web parts on the host web from inside of an app which should be a viable option for your situation. You could use this pattern to allow users to retrieve a custom configured web part and have it inserted into their host web allowing them to insert it at will (you ...


3

I've experienced the very same problem (Insert Data View was disabled in SP Designer 2013). The cause is the oslo master page and a bug in SP Designer 2013. Solution: In SP designer go to Master Pages and set SEATTLE master page as the default one. Then create a new web part page, give it a name and start editing in advanced mode. In the top ribbon go to ...


3

The community tools web part, is part of the site template and not intendet to be edited. These links have been selected by the development team of the community feature to make management simpler. Editing the web part isn't supported. One option to overcome the problem is to delete the Community Tools Web Part and customise a Content Editor web part making ...


3

Since .dwp web part file corresponds to SharePoint-based web parts and .webpart to ASP.NET web parts, web part file can not be converted without rebuilding web parts itself. The difference between SharePoint-based and ASP.NET web parts The set of features provided exclusively by Microsoft.SharePoint.WebPartPages.WebPart is as follows: ...


3

It's an easy fix, at least this worked for me. Steps: Double click package in Visual Studio Go to Advanced tab Change the product version to 14.0 and you are good to go


3

By default, Visual Studio retracts the Sandbox Solution when you stop debugging. You can control this functionality using the checkbox at the bottom of the SharePoint settings for your project.


3

You cant add a WebMethod to a webpart. A webpart is a server control and outputs html to the page. If you want to use webmethods I would create a web service and consume this in the webpart or by other pages / controls. For these scenarios, we usually have an Application Page which defines all the WebMethods.. And than you can use the ...


3

Use content editor web part:- (http://www.sharepointanalysthq.com/2011/03/embedding-pdfs-into-sharepoint-2010-pages/) First you need to find the URL to the PDF that you wish to view, after that you are ready to go! Step 1) Add a Content Editor Web Part to the page Step 2) Click on the ‘Edit HTML Source’ button for the Content Editor Web Part (not the ...


3

I added your code to one of my pages, and changed the jQuery/jQuery Tools links to use https. IE Dev tools threw an error about insecure content, and after looking in the zweatherfeed.min.js file, I saw that it was using http in a few links, so I changed them to https. That gave me this: And the following error in IE Dev tools: SCRIPT438: Object ...


3

This can be definitely possible while using asset dialog provided OOTB in SharePoint. This dialog uses AssetPickers.js file present in _layouts/15 directory of SharePoint server. I found one blog and try it on my side by creating visual webpart and make the file selector as one of its properties. Link of ...


3

It seems it occurs since sp.js library that contains SP.ClientContext class is not yet loaded when your code runs. Use SP.SOD.executeFunc to ensure that the specified sp.js library is loaded when the code runs. Try to change ApproveRejectRDA function to enclose it in SP.SOD.executeFunc like this: function ApproveRejectRDA(id, approved) { ...


3

When you get this type of requirement, you normally start with trying to understand what the real business case is. I mean, the security model in SharePoint is there for just that, security. When you get requirements trying to bypass it, you should be careful and really make sure to understand the real need. With that said, there are cases when you need to ...


3

user19952 has the easiest (and probably best) method, however as you can see from their screenshot there can be many web parts on one page, and it can be hard to differentiate which is which if you're not already familiar with the web parts. If you want to use the ID to find exactly what the web part is, you can use Powershell: $site = Get-SPSite ...



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