Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

QuickLaunch Customization to expand / collapse headers and items

  Asked By: Jody    Date: Sep 01    Category: Sharepoint    Views: 9787

I've been asked to customize the out-of-box quicklaunch to make the
headers collapse / expand to show or hide the links underneath each.

This type of thing is a piece of cake with a dataview web part and a
custom list, but they want to still make use of all the built-in
navigation customization capabilities in site settings / navigation
and retain some of the automatic hooks that allow designers to opt to
add quicklaunch links when they create new lists / libraries.

I see quite a few quicklaunch related .css styles, but I'm really at
a loss regarding where to begin. Is it possible to control expanding
and collapsing sections of the quicklaunch through .css? Are we
talking about a custom web part utilizing API calls to replicate the
quicklaunch functionality and tweak what we need? Can / does xslt
get into the mix?

I'm just looking for a pointer in the right direction or others in
the community to share how they'd approach the problem.



4 Answers Found

Answer #1    Answered By: Marjorie Humphrey     Answered On: Sep 01

You can change the quicklaunch  to use flyout subheadings instead of
static ones. Not exactly the same as expand/collapse, but perhaps
this will meet requirements.

You do it by editing the master page in SharePoint Designer (or, if
you don't want to customize  the site, by editing the master page in
the 12 hive). Of course, don't edit the OOTB master pages if you can
avoid it; copy them and make your own.

In default.master, for example, look for this section:


Look below this for these parameters:



Change StaticDisplayLevels to 1, and change
MaximumDynamicDisplayLevels to 1 or 2, depending on how deep you want
it to go.

Answer #2    Answered By: Chelsey Watts     Answered On: Sep 01

And don't edit the default.master in the 12 hive using SharePoint
Designer or any other SharePoint .aspx page. You will inevitably break
the page. You need to use Visual Studio for this kind of editing.

Answer #3    Answered By: Nagesh Maulik     Answered On: Sep 01

There is an article in MSDN related  to this at

All options suggested in this article work fine except "Replacing the Menu
Control with the TreeView Control". Does any one have any idea why this doesn't
work and is there any solution to this?

Answer #4    Answered By: Irving Hurley     Answered On: Sep 01

Did you enable the Treeview control  as explained at the top of the
article? The section you refer to is only about how to modify it, . You
still have to display it.