Copied to clipboard

Flag this post as spam?

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


  • Ayalatee 5 posts 75 karma points
    Oct 17, 2023 @ 03:39
    Ayalatee
    0

    Master template inside master template

    Hi, I am very new to Umbraco (trying the platform), and I am trying to create another master template except for the main master template. For example :

    • I have the master template that includes the header and the footer, some docTypes inherit from it
    • and one of them, let call it DataEdition, is supposed to includes other docTypes that each one of them contains form. (let call them DataForm)
    • when I try to set the master template for DataForm to be DataEdition (and add RenderBody() in the DataEdition template) it compiled with error:

    InvalidOperationException: RenderBody invocation in '/Views/DataEdition.cshtml' is invalid. RenderBody can only be called from a layout page.

    How can I implement the requirement above?

Please Sign in or register to post replies

Write your reply to:

Draft