Hide Listview items programatically from the Backoffice
Hello,
Version: Umbraco 10.6.1
I wonder if you can help me out. Please see the screen grab below:
I want to be able to programmatically hide some of these items in the backoffice.
I tried hiding it using tree nodes rendering (https://docs.umbraco.com/umbraco-cms/v/10.latest-lts/extending/section-trees/trees#treenodesrenderingnotification) but that seems to only deal with items in the tree
I also tried to explore Sending Content Notifications (https://docs.umbraco.com/umbraco-cms/v/10.latest-lts/reference/notifications/editormodel-notifications) but that seemed to deal with the properties.
I do have a feeling that this may be it but I'm just unable to to make it work for a listview
This is a super old article, but the principles of how to do this in the latest Umbraco remain broadly the same, but I'm wondering if you could use a custom ListView implementation, to then apply some logic of whether to display the item in the ListView or not in the angularJS Controller / View
Hide Listview items programatically from the Backoffice
Hello,
Version: Umbraco 10.6.1
I wonder if you can help me out. Please see the screen grab below:
I want to be able to programmatically hide some of these items in the backoffice.
I tried hiding it using tree nodes rendering (https://docs.umbraco.com/umbraco-cms/v/10.latest-lts/extending/section-trees/trees#treenodesrenderingnotification) but that seems to only deal with items in the tree
I also tried to explore Sending Content Notifications (https://docs.umbraco.com/umbraco-cms/v/10.latest-lts/reference/notifications/editormodel-notifications) but that seemed to deal with the properties.
I do have a feeling that this may be it but I'm just unable to to make it work for a listview
Any input would be appreciated.
Thanks,
Hi Francis
This is a super old article, but the principles of how to do this in the latest Umbraco remain broadly the same, but I'm wondering if you could use a custom ListView implementation, to then apply some logic of whether to display the item in the ListView or not in the angularJS Controller / View
https://archive.24days.in/umbraco-cms/2016/custom-list-view-layouts/
Although it's an old article it does a great job of breaking down all the moving parts in the ListView...
regards
Marc
Hi Marc,
Thank you for the suggestion. I would certainly try to explore this to see if this solution meets our needs.
I wonder if you know if the visibility of the list view items can be influenced by Editor notifications.
Thanks and regards,
Francis
is working on a reply...