Hi Neos Team ,
I’am new to Neos and Im still struggling with with context variables and passing them to fusion objects . Here is an example where Im trying to call a Copy component from Event , but the props type and title are not visible in the CopyTag object , I can clearly see it in the renderer .
prototype(PRD.Site:Component.Event) < prototype(Neos.Neos:ContentComponent) {
renderer = afx`
<section class="section-content text-align--center margin-bottom--80">
<PRD.Site:Component.Copy
type='h1'
title='Hello' />
</section>
`
}
prototype(PRD.Site:Component.Copy) < prototype(Neos.Fusion:Component) {
title = ''
type = ''
copyTag = Neos.Fusion:Tag {
tagName = ${props.type}
content = ${props.title}
}
renderer = afx`
${props.type}##{props.copyTag}
`
}
//Output
<section class="section-content text-align--center margin-bottom--80">h1##<div></div></section>
Thanks
-Emily