Tag Info

Hot answers tagged

14

Here is a post that shows how to do this. Link The following jQuery can be placed in a content editor webpart or on the masterpage, which is how I implemented it. function makeHeaderCollapsible() { $("div.menu-vertical>ul.root>li.static>ul.static").css("display", "none"); $("div.menu-vertical>ul.root>li.static>span.static").toggle ( ...


10

The recommended way to do this is to use PropertyBag (key/value pairs) through the Properties of SPFarm, SPSite.RootWeb (for root site of site collections), SPWeb, SPList etc (depending upon the scope that you need). Managing Custom Configuration Options for a SharePoint Application Update code example: // ...inside web app feature ...


7

There's a property for the list instance called something like ShowOnQuickLaunch, and you want to set that to false.


6

Using developer tools in IE, use the 'select element' tool to pick out a link that should be styled, and look at the Trace Styles tool to have a look and see what CSS is being applied. Use this to see if your style is being overridden by the corev4.css. If it is, make your CSS selectors more specific. If you can't see your selectors at all, use the source ...


5

You certainly can; Rich's approach will work (and is probably the way I'd do it), you also have the option of porting the quick launch into an accordion control (there's a few plugins out there, or you can utilize jQuery UI). The nice thing about Rich's method is that it doesn't require re-rendering the quick launch--it's simply hiding or showing the ...


5

I think here is the answer to your question: Security Trim "View All Site Content" It involves wrapping the View All Site Content link in a SecurityTrimmedControl (out of the box control) in the master page and setting the PermissionsString property with the appropriate value.


5

I figure your problem is that you have not specified URL for MainMenu. As you notice all links in QuickLaunch has link associated with it. Specify a Url and it should work (I tested that locally).


5

You could wrap the Quick Launch with the SPSecurityTrimmedControl and configure Permissions so that the Quick Launch is visible only to users with Edit Permissions.


4

I accomplished this by using the steps outlined here. Navigate to C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\DocumentTemplates\ Open wkpstd.aspx in a text editor. Find <SharePoint:RecentChangesMenu runat="server" id="RecentChanges"/> and replace with <SharePoint:RecentChangesMenu runat="server" ...


4

You can set the list's OnQuickLaunch property to False.


4

You can modify the navigation on this page: http://<server>/_layouts/AreaNavigationSettings.aspx In WSS3.0 this is under Site Actions > Site Settings > (Look and Feel) Quick Launch Then, you can delete the link.


4

By default, sharepoint uses AspMenu as control that renders top nav and quick lunch. Something interesting you can find using reflector in this control. Consider method OnMenuItemDataBound (some code omitted for clarity): if (bool.TryParse(dataItem["AllowScriptUrl"], out result) && result) { if (this.allowScriptUrlItems == null) { ...


4

Untested across the whole gamut of browsers, but if you're using the OOTB DOM, you have to do much more than just set the quick launch height. The #s4-leftpanel-content div contains the content and background color of the quick launch, so this has to be given a height of 100% (which sizes it to the height of the #s4-leftpanel div. #s4-leftpanel needs to be ...


4

If you can drop a Content Editor web part into the page you can add an anchor and some javascript into the web part that looks like this: <a href="javascript:history.length&gt;0?history.back(): window.location = &#39;http://yoursitehere.com&#39;;">Go back to previous page.</a> Just replace "yoursitehere.com" with your own site page ...


3

There's an extra class added to 'selected' menu nodes in the quick launch. That's used to style the current selected node in there. Use FireBug or Internet Explorer Dev Tools to locate it. The /_layouts folder is in SharePoint Root on the server file system, so you will need a feature to deploy files to that location. If you want only to change this for a ...


3

Do you use Publishing features? Normally you can changer order in Quick Launch settins from Site settings, Look and Feel column. You can find step by step guide here http://support.sherweb.com/Faqs/Show/how-to-change-the-order-of-the-items-in-the-quick-launch-of-sharepoint-sharepoint-2007 for example.


3

If this is something you need to fit into a feature, you can use the following code within a feature receiver. using (SPWeb web = properties.Feature.Parent as SPWeb) { SPNavigationNodeCollection nodeCol = web.Navigation.QuickLaunch; foreach (SPNavigationNode node in nodeCol) { if ...


3

You can accomplish this easily using SPServices and CSS. Add the script for including the Jquery file in your master page and include the following code to get the group name of the person logged in. <script type="text/javascript" src="/Jquery/jquery-1.6.2.min.js"></script> <script type="text/javascript" ...


3

Go to Site Settings . Under Web Designer Galleries click master pages and page layouts. Look for your master pages version history. Then reload to the which version you want.


3

The answer is quite simple. Open the Master Page (Normally V4) Find the following control : <SharePoint:ClusteredSPLinkButton id="idNavLinkViewAllV4" runat="server" PermissionsString="ViewFormPages" ...


3

I did it with the following code, Add-PSSnapin Microsoft.Sharepoint.Powershell $FindString = “something” Get-SPSite http:/sitecollectionurl/ | get-spweb -limit all | foreach-object{ $web = $_ $_.Navigation.QuickLaunch | ForEach-Object { $_.Children | ForEach-Object { if($_.title -eq $FindString){ $node = $_ ...


2

Bob - This is not so much an answer as a point in the right direction. I don't have the menus enabled so cannot tell you exactly what tags to look for. What you need to do is use the IE Developers Toolbar or a similar tool to identify the style associated with the background color on the menu. Then using jQuery, you can write a few lines of javascript to ...


2

I think pure css would be a much lighter approach for a similar result. For example: <style type="text/css">ul.dynamic {background-color:lightblue!important;}</style>


2

If the links were added in manually, then yes, you'd need to do that. If the navigation is ticked to include subsites, it should security trim them automatically. Hand added URLs do not get removed unless you apply the aduiencing as you mentioned.


2

Here is the script is working fine for me I found it from below link and did some modification. http://social.technet.microsoft.com/Forums/en-US/sharepoint2010customization/thread/02f1d451-aaca-4708-8171-fc6e4d24d7d6 $(document).ready(function() { // do stuff when DOM is ready $("#s4-leftpanel-content ...


2

You already answered half of your question. You cannot customize Quick Launch by changing SPNavigationNodeCollection on server side because your changes are then applied globally. So you are left with one reasonable option - to do it on client side with some javascript. I would suggest that you use jQuery for the sake of simplicity. To hide Libraries ...


2

If publishing feature is enabled or you created site using publishing template, http://office.microsoft.com/en-us/sharepoint-server-help/customize-navigation-links-on-the-quick-launch-HA010255192.aspx#BM10 If not, you have to use code to sort it...Example here ...


2

Yea, you are on the right path but unfortunately the ootb pages for generating the quicklaunch or top nav structures only allow 1 or 2 levels of depth. I had to write my own application pages that allow me to have unlimited levels of depth. In addition, the default SPNavigationProvider doesn't seem to allow navigation items that don't have a url or if ...


2

Site Actions, Site Settings, Quick Launch (or Navigation if you have the publishing infrastructure) in the Look and Feel section. Find the desired items, delete them and you're all set. Steps vary slightly if you have the Quick Launch option vs Navigation.



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