You need to sign in to do that
Don't have an account?
Brandon Chang 9
Can you add a template hero component to a custom theme layout?
Several of the community templates include hero components.
Due to client requests, we will eventually move to a custom theme layout. Instead of recreating a hero component, template header, template navbar, etc. is there a way to add template aura components to a custom theme layout?
Due to client requests, we will eventually move to a custom theme layout. Instead of recreating a hero component, template header, template navbar, etc. is there a way to add template aura components to a custom theme layout?
Use like this <aura:attribute name="themeHero" type="Aura.Component[]" required="false"/>
Example:
<aura:attribute name="search" type="Aura.Component[]" required="false"/>
<aura:attribute name="profileMenu" type="Aura.Component[]" required="false"/>
<aura:attribute name="blueBackground" type="Boolean" default="false"/>
<aura:attribute name="smallLogo" type="Boolean" default="false" />
<aura:attribute name="navBar" type="Aura.Component[]" required="false"/>
<aura:attribute name="newHeader" type="Aura.Component[]" required="false"/>
<aura:attribute name="newFooter" type="Aura.Component[]" required="false"/>
<aura:attribute name="themeHero" type="Aura.Component[]" required="false"/>
<div>
<div class="newHeader">
{!v.newHeader}
</div>
<div class="themeHero">
{!v.themeHero}
</div>
<div class="mainContentArea">
{!v.body}
</div>
<div class="newFooter">
{!v.newFooter}
</div>
</div>
</aura:component>