Filtering by approval status in ContentByQueryWebPart
July 25, 2008
If you need to programmatically set properties on ContentByQueryWebPart to filter the data by approval status than FilterField is _ModerationStatus FilterType is ModState
webPart.FilterField1 = "_ModerationStatus"; webPart.FilterType1 = "ModStat"; webPart.FilterValue1 = "Approved";

Trackback this post | Subscribe to the comments via RSS Feed