Copied to clipboard

Flag this post as spam?

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


  • Nick Austin 1 post 71 karma points
    Dec 03, 2020 @ 13:58
    Nick Austin
    0

    Default Macro on Document type / Macro as a Data Type - Ore Define Macro in Grid Layout - Please Help

    Hi,

    I am currently building a site where I have lots of components. For a standard page I have created a Layout which allows for Macros to be added to it.

    All of my Macros have parameters that are editable.

    What I need is for a layout to be created with default macros depending on page type. So for a Form Document Type - I need a 'Hero', 'Form' and 'CTA Banners' - As mentioned all of which have params. I can add these to a new page using a Template, but they Macro params cannot be edited.

    For example.

    @Umbraco.RenderMacro("HeroSimple", new { heading = "This is my Form Header" })
    

    Any help would greatly be appreciated.

    Thanks Nick

Please Sign in or register to post replies

Write your reply to:

Draft