Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > How to add a filter for featured News? View modes: 
User avatar
Certified Developer v7
Certified  Developer v7
gitesh-kudosweb - 10/28/2010 6:38:07 PM
   
How to add a filter for featured News?
Hi Guys,

I am having a news page , but I want to display only those news which are ticked as featured.

Can someone please help me in doing it.

I tried adding a where condition in the repeater but it didn't work(as I am not good in coding).

Thanks
Gitesh

User avatar
Member
Member
kentico_michal - 10/29/2010 3:14:22 AM
   
RE:How to add a filter for featured News?
Hi,

You could use Where condition property of repeater web part to insert standard SQL condition.
If your News document type contains for example custom field Feature (bool type), you could write SQL condition in following format to display all News with Feature set to true :

Where condition: Feature=1

Best regards,
Michal Legen

User avatar
Certified Developer v7
Certified  Developer v7
gitesh-kudosweb - 10/31/2010 2:59:36 AM
   
RE:How to add a filter for featured News?
Thanks Michal,

That's a nice solution.

it works..