Copied to clipboard

Flag this post as spam?

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


  • Ali Z 31 posts 173 karma points
    Jul 18, 2019 @ 06:23
    Ali Z
    0

    Subscribe to content adding in content tree

    Hello guys,

    I have a document type with a dropdown, I would like to initialize the value of the dropdown when the user instantiate the document type in the content tree based on business logic. (initial value could be different depending the context)

    Saved and Saving are too late. I want to initialize when the content is added to content tree.

    I saw that it was possible to attach logic to events here: https://our.umbraco.com/Documentation/Getting-Started/Code/Subscribing-To-Events/index-v7

    But I don't see any event related to the one i'm interested in.

    Do you know if it's possible ?

    Edit: I found this in the official documentation: https://our.umbraco.com/Documentation/Reference/Events/EditorModel-Events/index-v7

    Seems great on paper, but the event does not fire when I add a new content node via a "node picker" :(

    Thx, Ali

Please Sign in or register to post replies

Write your reply to:

Draft