Copied to clipboard

Flag this post as spam?

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


  • Matt 353 posts 825 karma points
    Feb 07, 2020 @ 13:14
    Matt
    0

    Hi,

    I have a nested content using partial, is it possible to reuse the nested content but for Macro as well? to allow users to add an accordion to a rich text editor?

    Thanks

  • Alexander Gräf 25 posts 131 karma points
    May 15, 2021 @ 21:32
    Alexander Gräf
    0

    No. Even if you define your own nested content types, it won't work properly. This feature has been broken since V8 and there is zero indication that it is going to be fixed anytime soon.

    Your best option right now is to use Doc Type Grid Editor. If you wanted to put it inside a rich-text editor, then you're out of luck.

  • Søren Kottal 702 posts 4497 karma points MVP 5x c-trib
    May 17, 2021 @ 12:48
    Søren Kottal
    0

    In v7 you could use this package to add data types (like your nested content data type) as macro parameter editors. https://our.umbraco.com/packages/developer-tools/parameter-editor-generator/

    I haven't ported it to v8 (yet? Not sure if it will be), but it's probably pretty simple to do.

    Only downside is, that Property Value Converters are not run on macro parameters, so you need to convert the json value from your nested content to IEnumerable

  • Alexander Gräf 25 posts 131 karma points
    May 17, 2021 @ 14:28
    Alexander Gräf
    0

    Even if you port it into a package.manifest, nested content doesn't seem to work in macros. Can't really figure out what is going wrong.enter image description here

    Error: [$compile:ctreq] Controller 'umbProperty', required by directive 'valServerMatch', can't be found! Error: [$compile:ctreq] Controller 'valFormManager', required by directive 'valPropertyMsg', can't be found!

    F12 says it loads the empty document type properly, and even shows the option to select which type to add to the nested content. It seems just not being implemented.

Please Sign in or register to post replies

Write your reply to:

Draft