More in this section
Forums / Developing with Sitefinity / PipeSettings FilterExpression

PipeSettings FilterExpression

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
2 posts, 0 answered
  1. Victor
    Victor avatar
    94 posts
    15 Jun 2011
    20 Mar 2014
    Link to this post

    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\"))";
  2. Atanas Valchev
    Atanas Valchev avatar
    414 posts
    04 Jan 2016
    24 Mar 2014
    Link to this post

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

    Atanas Valchev
    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
2 posts, 0 answered