Copied to clipboard

Flag this post as spam?

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


  • Dat Vu 3 posts 93 karma points
    May 16, 2022 @ 10:45
    Dat Vu
    0

    Get List View Column Value

    Hello Everyone. enter image description here

    How do I get Status, Last edited and Created by Value from List View and show it

    enter image description here

    Thanks in advance!

  • Marc Goodson 1718 posts 11411 karma points MVP 7x c-trib
    May 17, 2022 @ 10:41
    Marc Goodson
    100

    Hi Dat Vu

    The question is ... where do you want to get these values and show them :-P

    If it's on the front-end of your site, then 'every page' in your ListView represented by an object that implement IPublishedContent.

    So if you get the .Children of the ListView page, each one of those children will be an IPublishedContent object

    If the item isn't published it won't show in the list

    but the other information should be available:

    This is the list of IPublishedContent properties:

    https://our.umbraco.com/documentation/reference/querying/ipublishedcontent/Properties/

    There is a CreateDate and an UpdateDate

    and there is a property called WriterName that is the name of the person who last updated.

    regards

    Marc

Please Sign in or register to post replies

Write your reply to:

Draft