Copied to clipboard

Flag this post as spam?

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


  • Simon Ulmbrant 34 posts 154 karma points
    Dec 28, 2020 @ 13:17
    Simon Ulmbrant
    0

    Extend PublishedState

    Hi,

    Is it possible to extend the PublishedState enum and the publishing workflow, if yes how can I do it?

  • Malthe Petersen 68 posts 383 karma points c-trib
    Dec 28, 2020 @ 14:44
    Malthe Petersen
    0

    Hi Simon.

    Can you try to elaborate on what you want to achieve?

    You cannot extend the published state, but you can listen to events that Umbraco triggers when a piece of content is being published.

    Here is the documentation for their ContentService events: https://our.umbraco.com/documentation/reference/events/ContentService-Events

    Hope it helps a little bit.

  • Simon Ulmbrant 34 posts 154 karma points
    Dec 28, 2020 @ 15:04
    Simon Ulmbrant
    0

    Hi,

    I was planning to extend the approval flow and do different things in different states. I saw that the SendingToPublish and SentToPublish events only happens when sending for approval so maybe I can solve it somehow. I wonder if it's possible to use my own enum with published states and in this way set different states but I don't know if this will mess things up or not.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies