I always forget how to do this very simple trick with data views so I’m going to blog about it. I have a list on the root site of my primary site collection with all the general purpose links for users that should go on every site. The way I propagate them out to the sub sites is through data views. So how do I achieve this? Lets see here…

First open up your handy dandy copy of SharePoint designer and open up the site that’ll be displaying the data view and insert your data view. From the Data View menu.

PLEASE EDIT BEFORE SUBMITING POST

Once the sites been added it’ll show up in the list of available data sources with the Display Name you gave on top with access to all of it’s libraries.

This trick works for all SharePoint cross-site data viewing.

Next since I’m doing a Link list I go ahead and right click the Links library and click “Show Data”, towards the bottom is a URL field, insert it as a multi-item view.
This of course gets the data there but it’s formatted all wrong, so hover over one of the items and click the little box with the arrow thing to change it to a link.

Next, select one of the fields so you can see where it is in code and paste in the following to get it all formatted nice and pretty and with the proper display name:
PLEASE EDIT BEFORE SUBMITING POST

This’ll use all data before the , in the field as the url and everything after the , as the title.

trackback image tell a friend image Permalink Image

Post Tags: microsoft  code  sharepoint 


Next entry: New Project in Virtualization Previous entry: Active Directory Search through Web Services



Comments: (1)
Dakota on Fri, Mar 28th, 2008 at 03:14 PM

Thank you google for indexing live, this already helped me.


Page 1 of 1 pages

Post a comment

Name:
(Required)

Email:
(Required)

URL:

Smileys

Remember my personal information

Notify me of follow-up comments?

Submit the word you see below: