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

Forums / Developing with Sitefinity / List & Single(Detail) News widget on same page - supress single item showing in the list.

List & Single(Detail) News widget on same page - supress single item showing in the list.

5 posts, 0 answered
  1. Kris
    Kris avatar
    16 posts
    Registered:
    24 Sep 2012
    25 Aug 2015
    Link to this post

    I have a Single News Item widget and also a List News Widget on the same page.

    I have the ContentViewDisplayMode set to Master for the List Widget and it is displaying correctly. However, I want to filter the List Widget so the article in the Single Item widget doesn't not show in the List.

    Is there a way to set the filter expression to read the url built by the Single item Widget to suppress that item?

     
     
  2. Svetoslav Manchev
    Svetoslav Manchev avatar
    735 posts
    Registered:
    22 Sep 2016
    27 Aug 2015
    Link to this post
    Hi Kris,

    If I correctly understand your needs, you can try this approach:
    - Add the two News widgets on the Page
    - Select the settings/filtering you need for both of them.
    - Set (as in the example video below) the Last 3 items widget to be in Master Mode (Edit > Advanced > ContentViewDisplayMode > (set) Master).

    You can find a short video demonstration how it works.


    Regards,
    Svetoslav Manchev
    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
     
  3. Kris
    Kris avatar
    16 posts
    Registered:
    24 Sep 2012
    27 Aug 2015 in reply to Svetoslav Manchev
    Link to this post

    Not quite.

    From your example, if you clicked item 1 on the top list (Test 3 red) when it goes to the detail view, I would want that item to not appear in the bottom list of "Last 3 News" . That list would now show 12, 8, & 7 instead of 3, 12, & 8.

  4. Svetoslav Manchev
    Svetoslav Manchev avatar
    735 posts
    Registered:
    22 Sep 2016
    28 Aug 2015
    Link to this post
    Hello Kris,

    In that case you could create a custom control to show that last 'N' Items querying them using the News API

    Than you can check and exclude that Item from the last 'N' list in case it is currently displayed based on the current url. 

    Regards,
    Svetoslav Manchev
    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
     
  5. Kris
    Kris avatar
    16 posts
    Registered:
    24 Sep 2012
    28 Aug 2015 in reply to Svetoslav Manchev
    Link to this post

    That's what I was afraid of. I was hoping there was a way to do it without having to write a custom control.

    Thanks.

5 posts, 0 answered