Tag Info

Hot answers tagged

4

Please check the following: Is there any warning in the ULS-logs? Is the sequence set correctly? Does adding a breakpoint help (this checks if the code is actually loaded) Check if the Control is referenced at all in the page using http://blog.mastykarz.nl/checking-which-delegate-controls-activated-site/ ? Is the control registered as safe (check in the ...


4

The line <Property Name="QueryPromptString">$Resources:MyResourceFile,ResourceKey</Property> wokrs fine for me. I think that you should check your resources file. This file should contain ResourceKey which you tries to use in this property. If you use correct resource file and key, the search control displays text depends on the site language. ...


3

Here's a complete example of a working ASCX SharePoint DelegateControl. It adds the required Google Analytics stuff plus any meta keywords you define. First, the feature.xml: <Feature Id="INSERTYOURGUIDHERE" Title="Adds Google Analytics Counter (requires a Google Analytics ID)" Description="Activates feature for Google Analytics Web counter" ...


2

Where exactly do you want the webpart to show up? If you put it in the master page, it will show up everywhere. Usually this is not what you want with controls like CQWP. Your options also depend on how you provision your solution. The recommended approach is to use module features and solutions for master pages, page layouts and pages. If this is how ...


2

You can develop a Delegate Control for the Head Section, by creating a SharePoint feature. That SharePoint feature can be enabled and disabled according to the Sites. File -> New Project -> SharePoint Empty Project. Add New Class and change its base class to System.Web.UI.WebControls.WebControl Override required methods like OnLoad,CreateChildControls or ...


2

Opening up the "DelegateControl" object in Reflector it is basically just a dynamic control builder. It queries the current context to get the list of all registered controls (i.e. features with a <Control> element which uses the same ControlId as the Delegate Control). These could be features from any of the available scopes (Farm, Web Application, ...


2

I always have added custom links to the suite bar using a small jquery script on the page On SharePoint 2013 you can do that using this code <script type="text/javascript"> var suiteBar = $("#suiteBar").find(".ms-core-brandingText"); suite.html("<a href="www.google.com"> custum link </a>"); </script> If you are using Office 365 ...


2

Microsoft has recently made some change to O365. I can not verify if this was a change but there is no ID for DeltaSuitBar on the rendered page. There is a class you could use "ms-core-deltaSuiteLinks" as well as an ID of "suiteLinksBox" that will also work for applying a hidden style too. You can try this by opening the console window of your browser ...


2

Your user control needs to target a delegate control placed in the page body not AdditionalPageHead. AdditionalPageHead targets the html head element and is used for adding additional things to the head, like css and javascript files. A delegate control in the body is the appropriate place for an asp:button to live. So within the masterpage, you would ...


2

In feature 1 have an elements.xml with: <?xml version="1.0" encoding="utf-8"?> <Elements xmlns="http://schemas.microsoft.com/sharepoint/"> <Control Id="AdditionalPageHead" Sequence="90" ControlSrc="~/_CONTROLTEMPLATES/XXX/first.ascx" /> </Elements> In feature 2 have an elements.xml with: ...


1

You can follow following steps: In Solution Explorer, choose the project node. On the menu bar, choose Project, Add New Item. The Add New Item dialog box opens. In the Installed pane, choose the Office/SharePoint node. In the list of SharePoint templates, choose User Control (Farm Solution Only). For more details: ...


1

If you want to remove OneDrive for Business, Yammer/Newsfeed, and/or Sites from the top nav bar throughout the tenant, MS has recently added the ability to turn off via the SharePoint > settings menu > "Top Navigation Bar User Experience" section at top.


1

As @Jesus already mentioned in his answer, Microsoft silently shuffled things around a little bit on Office 365 SharePoint Online. So far, I've come across a change how the online help is embedded (by changing seattle.master). The second change, which you also discovered already, is a change on the suitebar delegate control, which is a hidden feature so we ...


1

Try using ScriptLink <sharepoint:scriptlink defer="false " id="SPScriptLink " localizable="false " name="jquery-x.x.x.js " runat="server"></sharepoint:scriptlink> or <SharePoint:Scriptlink runat="server" Name="~sitecollection/Style Library/[YOUR SITE]/js/jquery.js" Language="javascript" /> The ScriptLink control ensures that the ...


1

You could simply modify your system master page and add some javascript to the bottom of the page just above PlaceHolderFormDigest to set the "Overwrite existing files" checkbox to default to Unchecked. http://planet-sharepoint.blogspot.co.uk/2013/10/sharepoint-2010-set-overwrite-existing.html


1

Most likely the problem lies in the site definition's ONET.XML in the NavBars section. The NavBar with ID 1002 is missing. You might also encounter errors when editing navigation as described here: Unable to modify navigation heading link. I also recommend that you read this: Charlie Holland's NavBars - if only it was that simple!


1

I think, given that the changes are 'global', you could simply use a list to store them, at root level. So on the root level of your sharepoint site, create a list (that you hide from navigation etc), with a content type that has all the fields you need to store. Then, when the user 'saves changes' from your custom page (or control), that list is updated ...


1

I had similar requirements and I preferred to store custom settings for each user in a hidden list called user info list. More information about this list here: http://zimmergren.net/technical/sharepoints-hidden-user-list-user-information-list I extended the list by adding an extra column to store the user settings.


1

You can use SPPersistedObject which stores data in Configuration database. I have written a blog post which shows how to use SPPersistedObject in admin pages in SharePoint. This may give you some pointers on how to use it in your page. http://sharepointnadeem.blogspot.in/2012/03/create-administration-page-in.html


1

Delegate Controls are activated by FEATURES. So you need to find a FEATURE that contains the definition of Delegate Cotrol. And for you its the feature ‘My Site Navigation’ which is located in {SharePointRoot}\TEMPLATE\FEATURES\MySiteNavigation\Feature.xml. If you observe the element file of that FEATURE, you will see that the top navigation corresponds ...


1

I think CQWP is possibly the wrong route as it doesn't work across site collections, only within a single site collection. It sounds like you're better off looking at creating a custom Data Source, adding that into your web.config and replacing the existing navigation delegates using a feature. Much simpler in the long run. Without knowing more about ...


1

What I have done in a situation like this in past is created a custom web control and override the CreateChildControls method. In this method you would create instance of your WebPart and programmatically configure the the webpart to match it with your .webpart file and add web part to the Controls collection of your control. Now that you have a control you ...


1

One thing you can do is check for the ID of the control that caused the postback with Request.Params["__EVENTTARGET"] inside of your delegate control. I'm pretty sure you can actually get the actual event that caused the postback as well.


1

You need to build something to get this to work. In you custom global nav you could either store the navigation history in a cookie, in a db, in-memory or whatever you prefer.


1

I guess one way to do this would be to iterate over all the feature definitions in the Farm looking for the relevant elements defintions. I recall needing to do something like that when I needed to list all Custom Actions. As the points above state, all the info can be seen using the reflector/ILSpy and you'll need to write your own versions.



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