Copied to clipboard

Flag this post as spam?

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


  • Andrew Hawken 59 posts 116 karma points c-trib
    Mar 02, 2022 @ 11:10
    Andrew Hawken
    0

    Content App : get the content Id when the current content is an elementType

    I have an element type called eventMultiStage which is edited in a blocklist editor - the user can select several different types in the editor, but its only the eventMultiStage that I'm interested in.

    I was pleased to discover I could build a content app which only showed when editing that type of block with a manifest entry like :

    "show": [
        "+content/eventMultiStage" 
      ]
    

    So far so good. However, in my Angular controller editorState only seems to return data about the parent page, not the currently edited element type. How do I get a handle (the ID would be great) of the currently edited block/element type?

  • 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