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" })
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.
Any help would greatly be appreciated.
Thanks Nick
is working on a reply...
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.