Hi All,
I have a column control that appears on the page [for now say at one location, as below].
/content/xxx/sample/jcr:content/par/columncontrol.
If I placecomponents in only 1st or both 1st and 2nd column[and so on] the structure changes to /content/xxx/sample/jcr:content/par/columncontrol/par0, /content/xxx/sample/jcr:content/par/columncontrol/par0 and /content/xxx/sample/jcr:content/par/columncontrol/par1 respectively and so on.
Basically, I need to check whether any components[may be 1 or 2 or whatever] are added to my column control component and based on that in my columncontrol html,
<div class="column-control blah blah ''}">
</div>
I have to put a condition [probably data-sly-test] to this main div, so that this div is not included if no components are added inside column control component.
Any pointers/reference code on how to go about this will be helpful.