List & Single(Detail) News widget on same page - supress single item showing in the list.
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?
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
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.
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
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.