Copied to clipboard

Flag this post as spam?

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


  • Sonja 132 posts 620 karma points
    Nov 21, 2018 @ 10:40
    Sonja
    0

    Use another document type in grid layout

    Hi,

    I have grid layout and I would like to use another document types in that I've created instead of the default rich text editor. Is this possible?

    Thanks

  • Darren Welch 23 posts 136 karma points c-trib
    Nov 21, 2018 @ 11:10
    Darren Welch
    0

    HI, I haven't done this myself, but there appears to be a good solution on this question:

    https://our.umbraco.com/forum/umbraco-7/using-umbraco-7/64836-RichTextEditor-in-Custom-grid-control

  • Sonja 132 posts 620 karma points
    Nov 21, 2018 @ 11:31
    Sonja
    0

    this is not what I've been looking for. I want to avoid using plugins

  • louisjrdev 107 posts 343 karma points c-trib
    Nov 21, 2018 @ 11:53
  • Sonja 132 posts 620 karma points
    Nov 21, 2018 @ 12:17
    Sonja
    0

    Again plugins. I don't like to create plugins. I meant something like: I have a document type having header and content and then I have grid layout having 3 columns and there is the first document type used in all 3 layouts. Nothing with Angular.

  • Darren Welch 23 posts 136 karma points c-trib
    Nov 21, 2018 @ 15:24
    Darren Welch
    100

    I'm not quite sure I understand. But if I do, then you may be able to achieve this with Nested Content:

    https://our.umbraco.com/documentation/getting-started/backoffice/property-editors/built-in-property-editors/Nested-Content

    I've used this in similar situations.

    1. I create a document type without a template containing the fields e.g. Header & Content. Let's call this ContentSection
    2. On my main document type, I create a Nested content, that uses ContentSection. You can limit the number to min:3 max:3

    That way your editors have to add 3 columns.

  • Søren Kottal 530 posts 3521 karma points MVP 2x c-trib
    Nov 22, 2018 @ 09:22
    Søren Kottal
    0

    Hi Sonja

    If you need it completely vanilla, you can use a macro. It's not a doctype, and you can't use the richtext editor inside (out of the box - there a plugins for this :)), but it lets you define the content model for your elements.

    If I was you, I would do this with Doc Type Grid Editor https://our.umbraco.com/packages/backoffice-extensions/doc-type-grid-editor.

    It's a widely used plugin for exactly your usecase. It is built to feel as native as possible, and you will get IPublishedContent representations of all your grid elements, allowing you to use ModelsBuilder and all.

    Besides that, I think the concept used in Doc Type Grid Editor is going to be used for Umbraco 8's grid editor.

  • 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