Geeks With Blogs

News
Steve Clements .Net and then some....

The issue is with Sharepoint blog category view. The page should only show the posts which have been tagged with the category you click on, but I have found this not to be the case.

I posted a thread on the Sharepoint blog forums and thankfully Laura Rogers came up with a solution.

 

Here we go…

Navigate to the category.aspx page of the Sharepoint blog.

Add a Query string (URL) Filter web part.

clip_image002

 

 

 

 

Modify the query string web part settings. Query string parameter name must be Name.

clip_image004

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Remove the filter from the posts web part.

Go into the Posts web parts settings, click edit the current view.

clip_image006

 

 

 

 

 

 

 

 

 

In the Filter section, change the option selected.

clip_image008

 

 

 

 

 

 

Now connect the query string web part to the posts web part.

clip_image010

 

 

 

 

 

 

 

 

 

You will get this little popup (you may need to allow popups). Select Category from the list.

clip_image012

 

 

 

 

 

 

 

 

 

 

That’s it.

Your category filtering should now work.

Posted on Tuesday, January 6, 2009 10:38 AM Sharepoint | Back to top


Comments on this post: Sharepoint | Blog category view not filtered by category

# re: Sharepoint | Blog category view not filtered by category
Requesting Gravatar...
Worked for me - thanks :)
Left by Anonymous on Jan 28, 2009 3:48 PM

# re: Sharepoint | Blog category view not filtered by category
Requesting Gravatar...
Thanks for posting this! I've been looking for a solution to this problem for the last week, and this worked perfectly.
Left by Dave on Jun 23, 2009 10:15 AM

# re: Sharepoint | Blog category view not filtered by category
Requesting Gravatar...
Hey

I seem to have the same problem but I don't have the Query string (URL) Filter webpart in my list of webparts. Do you know how to enable the webpart?

Best regards
Håvard
Left by Håvard on Sep 04, 2009 2:12 AM

# re: Sharepoint | Blog category view not filtered by category
Requesting Gravatar...
Thank you profusely. Breaks in programming like that just shouldn't happen but glad there are people like you around when they do.
Left by Rob DeMartini on Sep 29, 2009 10:36 AM

# re: Sharepoint | Blog category view not filtered by category
Requesting Gravatar...
Hi, I have the same problem as Håvard - the Query string (URL) Filter webpart is not available.

How do I activate it, or why is it not in the list of webparts?

I'm using MOSS 2007 on a Server 2008
Left by André on Jan 07, 2010 11:23 AM

# re: Sharepoint | Blog category view not filtered by category
Requesting Gravatar...
I got it - we use MOSS 2007 Standard, and not the Enterprise Edition:

http://blogs.msdn.com/ketaanhs/archive/2008/02/12/out-of-the-box-list-of-web-parts-sharepoint-2007-or-moss-or-wss-3-0.aspx
Left by André on Jan 14, 2010 9:42 PM

# re: Sharepoint | Blog category view not filtered by category
Requesting Gravatar...
actually you can add a Parameter in Category pages. Select "Query String" as source, Variable to "Name".
and then you can use this parameter in setting up the filter.

You don't need to set up this web part to fix the filter function!!
Left by jessiel on May 27, 2010 10:26 AM

# re: Sharepoint | Blog category view not filtered by category
Requesting Gravatar...
These instructions are not detailed enough. You have to add the query string filter web-part, add the settings, then remove it from the Posts web-part???
Is this all done in SP Designer or are you switching between the Categories page?
Left by Frustrated on Sep 02, 2010 11:12 PM

# re: Sharepoint | Blog category view not filtered by category
Requesting Gravatar...
Thank you and WonderLaura!

This really helped me!

Thanx (x 1000)
Left by Jack Lauret on Sep 09, 2010 6:51 AM

# re: Sharepoint | Blog category view not filtered by category
Requesting Gravatar...
Another way to fix this (so it works the same as the original code) is to replace the where clause in the ListViewXml with "<Where><Eq><FieldRef Name="PostCategory"/><Value Type=""><GetVar Scope="Request" Name="Name"/></Value></Eq></Where>". When I tried the Query String (URL) filter web part it would choke if the catagory included an & symbol.
Left by Ben on Sep 15, 2010 5:01 AM

# re: Sharepoint | Blog category view not filtered by category
Requesting Gravatar...
Wow.. This is awesome.. I have got it exactly what i am looking for..
Left by Gn on Oct 20, 2010 12:48 PM

# re: Sharepoint | Blog category view not filtered by category
Requesting Gravatar...
Yes!!! Thanks.
Left by danielbpatton on Jan 25, 2011 9:44 AM

Your comment:
 (will show your gravatar)


Copyright © Steve Clements | Powered by: GeeksWithBlogs.net