Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Francis 16 posts 96 karma points
    Feb 27, 2024 @ 11:24
    Francis
    0

    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:

    enter image description here

    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,

  • Marc Goodson 2141 posts 14344 karma points MVP 8x c-trib
    Mar 01, 2024 @ 09:09
    Marc Goodson
    0

    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

  • Francis 16 posts 96 karma points
    Mar 04, 2024 @ 17:18
    Francis
    0

    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

Please Sign in or register to post replies

Write your reply to:

Draft