Connect.Collaborate.SharePoint

Solution To: List views in SharePoint are not as prominent as in the previous version

Today I saw a request for help that I had already thought would be something worth solving. (see my post http://www.wssdemo.com/blog/Lists/Posts/Post.aspx?ID=296)

Here is the request:

I've created a list with multiple views and set the default view on an IT-managed MOSS 07 site.
I am looking for a way to display the additional views as links on the pages for this list, in addition to the pull-down on the right side.
Suggestions or help appreciated. I tried playing with some Web parts, but couldn't find any that did this simple task.

ILLUSTRATIONS (apologies for the crude rendering):

Current:

 Desired:

My Answer:

You have 2 options:

  1. Simple solution - switch the page to edit mode (from the Site Actions menu) and add the content editor web part. Then add static links for each of your views. Export this web part and add it to each of your views.
  2. Less simple solution – Use SharePoint Designer to add a data source for the views web service and then set the ListName (get the value from the Library Settings page url)

    Now you can view the data source

    Insert the selected field as Multiple Item View (must have one of the list views open and a web part zone selected, be careful not to select an actual web part or it will be replaced with the data view, CTRL-Z if this happens).

    Then you can filter out any view you don't want and change the layout

Change the Layout to the simple one (last in the list). Remove the xsl:if statement that adds the <br> code.

Set the filter criteria to remove the unwanted system views

 

You can change the Display Name to be a hyper link to the URL field (note: Text To Display field keeps syncing to the URL field so you have to set it back to {@DisplayName})

 

Then you can export the data view web part (from IE) and import it onto the other views.

Here is the final view…

Inquisitive minds might be asking what the Acount Manager and CRM columns are. This is a site based on the Enterprise Document Library template. We have a folder for all the customers we do work for (hundreds). I created a new Customer content type which is based on the folder content type and add these extra fields to it (including some segmentation and geographic metadata). Unfortunately we don't have the BDC connected up to MSCRM yet…

 

There are 2 things this solution currently doesn't provide:

  1. It doesn't indicate the current view. I'm working on that ;-)
  2. It will always jump to the root folder. I'm working on that also ;-)

There is a 3rd option but that involves building a feature and installing it on the server, something that I'm not able to do on our production serverL

Posted by Ian Morrish on Tuesday, 23 Oct 2007 08:18 | 0 Comments

Links to this post

Trackback from Blog on 12 Apr 2008 08:58

Name

Url

Email

Comments

CAPTCHA Image Validation