Question : Filtering a sharepoint list web part by sitename

Hi,

I've currently got a list in my main site. In that list, there is a column called user. What I would like to do is create a list web part that can be used in all my user subsites so that filters so that

[Subsite name] = user

NOTE: All the subsites use the same name as the users in the list.

I have tried creating a filter using [sitename], [site name] and various other permutations but with no luck.

Any help would be really appreciated.

Answer : Filtering a sharepoint list web part by sitename


Hi,

I tried implementation as you suggested. And, I was able to implement it using 'Content Query Webpart'. 'Content Query Webpart' allows you to get the data from other sites and also, allows the filter based on sitecolumns.

As Content Query Webpart only allows filter on site columns, I created a sitecolumn of Person, based on the Person lookup list. Then I created a product contenttype with person sitecolumn. Then, added the contenttype to product list. Added the data to it.

Then added the Content Query Webpart to subsite. Added the filter on person sitecolumn with the person name.
Webpart displays the products with the filter on person name.

I hope it helps.

Cheers ...
Rajendra



Random Solutions  
 
programming4us programming4us