Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Custom Filter not working in the URL View modes: 
User avatar
Certified Developer v7
Certified  Developer v7
gitesh-kudosweb - 12/16/2010 7:51:18 PM
   
Custom Filter not working in the URL
Hi Guys,

I have created a new field in the News Document type called "category" and in all the news items passed values to it.e.g category = 1 or 2 or...

Now I am on a news page called news.apsx and I am trying to add a filter to it.
I tried like this in the URL: news.apsx?category=1

I thought the above condition would filter it but, it didn't work.
What am I doing wrong here? Am I missing something?

I dont want to create a new webpart as I am gonna use this only for 1 or 2 pages.

Thanks
Gitesh Shah

User avatar
Member
Member
kentico_michal - 12/17/2010 5:55:07 AM
   
RE:Custom Filter not working in the URL
Hi,

You need to set the WHERE condition property of the repeater to appropriate value. You could use for example following query macro, that takes the URL parameter category and inserts it into the WHERE condition, if there is no category parameter in the URL, value 1 will be used:

WHERE condition: Category={%category|(default)1%}

More information about macro expressions can be found in Developer's guide.


Best regards,
Michal Legen