I am trying to add a class 'feed-test' to 'template-one' based on the boolean value of a checkbox property on 'template-two.' I have read through this similar post regarding block statements, but still struggling.
Here's the file structure and code:
Directory structure
structure/
├── template-one/
│ ├── body.html
│ └── .content.xml
└── template-two/
├── _cq_dialog
│ └── .content.xml
└── other files
template-one where i need to add class
<div class="base-wrapper INSERT-FEED-TEST-CLASS-HERE">
<sly data-sly-use.templatedContainer="com.day.cq.wcm.foundation.TemplatedContainer"
data-sly-repeat.child="${templatedContainer.structureResources}"
data-sly-resource="${child.path @ resourceType=child.resourceType, decorationTagName='div'}"/>
template-two class property i need to access
<isFeedPage
cq:showOnCreate="{Boolean}true"
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/checkbox"
cq-msm-lockable="isFeedPage"
fieldLabel="Is Feed Page"
text="Is Feed Page"
name="./isFeedPage"
granite:class="feed-test">