PipeSettings FilterExpression

Posted by Community Admin on 04-Aug-2018 03:30

PipeSettings FilterExpression

All Replies

Posted by Community Admin on 20-Mar-2014 00:00

Hi,

In the following code, the last line  "pipeSettings.FilterExpression =..." doesn't appear to be the valid syntax.  Does anyone know how to format this string?

 
PublishingManager manager = PublishingManager.GetManager(PublishingConfig.
IQueryable<PublishingPoint> publishingPoints = manager.GetPublishingPoints();
 
 
 
var publishingPoint = publishingPoints.FirstOrDefault();
 
var pipeSettings = publishingPoint.PipeSettings.FirstOrDefault(ip => ip.PipeName == ContentInboundPipe.PipeName && ((SitefinityContentPipeSettings)ip).ContentTypeName == typeof(NewsItem).FullName) as SitefinityContentPipeSettings;
pipeSettings.FilterExpression = "(eNewsClassifications.Contains(\"3EF5C90E-743D-6A02-AAF8-FF0000765F2C\"))";

Posted by Community Admin on 24-Mar-2014 00:00

Hi,

Please, try formatting the filter expression like the examples in this article:Filter expressions.

Regards,
Atanas Valchev
Telerik

 
Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
 

This thread is closed