+1-888-365-2779
Try Now
More in this section

Pages filter

10 posts, 0 answered
  1. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    23 Oct 2013
    Link to this post
    I need to add a filter to the pages sidebar that checks to see if the "Title" is missing some text

    What's the filter expressionto use?  Anything I try seems to return no results?

    So like !Title.Contains("text") does nothing...
  2. Yavor Slavchev
    Yavor Slavchev avatar
    27 posts
    Registered:
    13 Sep 2016
    28 Oct 2013
    Link to this post
    Hello Steve,

    Can you provide more details how this filter is added to the sidebar and where you are trying to put the filter expression?

    I'm looking forward to your answer.

    Regards,
    Yavor Slavchev
    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 Public Issue Tracking system and vote to affect the priority of the items
  3. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    28 Oct 2013 in reply to Yavor Slavchev
    Link to this post
    Same place in the backend where all the other filters are, just trying to add a new one
    ContentViewConfig.contentViewControls.FrontendPages.views.FrontendPagesListView.config

    <?xml version="1.0" encoding="utf-8"?>
    <view xmlns:config="urn:telerik:sitefinity:configuration" xmlns:type="urn:telerik:sitefinity:configuration:type" config:version="6.2.4910.0" viewName="FrontendPagesListView">
        <sidebar>
            <sections>
                <section name="Filter">
                    <items>
                        <item commandName="filter" commandArgument="{filterExpression : "!Name.Contains(\"Home\")"}" commandButtonType="SimpleLinkButton" isFilter="False" text="Missing Site Name" wrapperTagKey="Unknown" widgetType="Telerik.Sitefinity.Web.UI.Backend.Elements.Widgets.CommandWidget, Telerik.Sitefinity" isSeparator="False" name="MissingSiteName" type:this="Telerik.Sitefinity.Web.UI.Backend.Elements.Config.CommandWidgetElement, Telerik.Sitefinity" />
                    </items>
                </section>
            </sections>
        </sidebar>
    </view>
  4. Yavor Slavchev
    Yavor Slavchev avatar
    27 posts
    Registered:
    13 Sep 2016
    29 Oct 2013
    Link to this post
    Hello Steve,

    Thank you for your quick response.

    In the provided configuration you are trying to filter pages by Name, not by Title. I tried the same here and filtering by title with "!Title.Contains" is working properly. Filtering by Name does not, because Name is empty for all pages.

    I hope this will solve the problem.

    Regards,
    Yavor Slavchev
    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 Public Issue Tracking system and vote to affect the priority of the items
  5. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    30 Oct 2013 in reply to Yavor Slavchev
    Link to this post
    Sorry I should have mentioned that I had tried title already and "Name" was just me testing another property to see what happened

    I changed it back to title, and it still doesn't do anything
    This should return me one result:
    {filterExpression : "Title.Contains(\"Home\")"}

    ...but it just returns all 40+ pages...
  6. Yavor Slavchev
    Yavor Slavchev avatar
    27 posts
    Registered:
    13 Sep 2016
    01 Nov 2013
    Link to this post
    Hi Steve,
    Thank you for your clarification.

    Here is a short video of how I setup and use sidebar filter. Take a look at it and tell me what is different from your configuration.

    I hope this video will help solve the problem.

    Regards,
    Yavor Slavchev
    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 Public Issue Tracking system and vote to affect the priority of the items
  7. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    01 Nov 2013 in reply to Yavor Slavchev
    Link to this post
    You tell me :)

    ...seems identical
    http://screencast.com/t/qqyN5JiIY1MX
  8. Yavor Slavchev
    Yavor Slavchev avatar
    27 posts
    Registered:
    13 Sep 2016
    04 Nov 2013
    Link to this post
    Hello Steve,

    Thank you for contacting us again.

    Did you try to restart the application after you apply filter changes? After I created it, i have restarted the site to apply the filter. Try it at your side.

    I hope this helps.

    Regards,
    Yavor Slavchev
    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 Public Issue Tracking system and vote to affect the priority of the items
  9. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    04 Nov 2013 in reply to Yavor Slavchev
    Link to this post
    Yes, even if I didn't the app pool would have shut down a million times in the course of a week with updates
  10. Yavor Slavchev
    Yavor Slavchev avatar
    27 posts
    Registered:
    13 Sep 2016
    06 Nov 2013
    Link to this post
    Hi Steve,

    Another difference that I have noticed is the way the filter is set in the configuration file: Mine is:

    commandArgument="{filterExpression : "!Title.Contains(\"Test\")"}"

    Note that quotes are replaced with the special entity &quot. Could this be the problem at your side?

    Regards,
    Yavor Slavchev
    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 Public Issue Tracking system and vote to affect the priority of the items
10 posts, 0 answered