Sharepoint | Blog category view not filtered by category

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.

  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Print | posted on Tuesday, January 06, 2009 10:38 AM

Feedback

# re: Sharepoint | Blog category view not filtered by category

Left by Anonymous at 1/28/2009 3:48 PM
Gravatar Worked for me - thanks :)

# re: Sharepoint | Blog category view not filtered by category

Left by Dave at 6/23/2009 10:15 AM
Gravatar Thanks for posting this! I've been looking for a solution to this problem for the last week, and this worked perfectly.

# re: Sharepoint | Blog category view not filtered by category

Left by Håvard at 9/4/2009 2:12 AM
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

# re: Sharepoint | Blog category view not filtered by category

Left by Rob DeMartini at 9/29/2009 10:36 AM
Gravatar Thank you profusely. Breaks in programming like that just shouldn't happen but glad there are people like you around when they do.

# re: Sharepoint | Blog category view not filtered by category

Left by André at 1/7/2010 11:23 AM
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

# re: Sharepoint | Blog category view not filtered by category

Left by André at 1/14/2010 9:42 PM
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

# re: Sharepoint | Blog category view not filtered by category

Left by jessiel at 5/27/2010 10:26 AM
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!!

# re: Sharepoint | Blog category view not filtered by category

Left by Frustrated at 9/2/2010 11:12 PM
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?

# re: Sharepoint | Blog category view not filtered by category

Left by Jack Lauret at 9/9/2010 6:51 AM
Gravatar Thank you and WonderLaura!

This really helped me!

Thanx (x 1000)

# re: Sharepoint | Blog category view not filtered by category

Left by Ben at 9/15/2010 5:01 AM
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.

# re: Sharepoint | Blog category view not filtered by category

Left by Gn at 10/20/2010 12:48 PM
Gravatar Wow.. This is awesome.. I have got it exactly what i am looking for..

# re: Sharepoint | Blog category view not filtered by category

Left by danielbpatton at 1/25/2011 9:44 AM
Gravatar Yes!!! Thanks.

Your comment:





 
 

Copyright © Steve Clements

Design by Bartosz Brzezinski

Design by Phil Haack Based On A Design By Bartosz Brzezinski