Introducing a sly logic as a parent sly will harm existing data in AEM ?

Avatar

Avatar

JakeCham

Avatar

JakeCham

JakeCham

21-01-2021

<sly data-sly-test="logic"> //Newly added logic

    <sly data-sly-test="logic"> //existing logc

    </sly>

</sly>

Here I have wrapped the existing logic by a new logic and all of my existing content related to that inside sly logic got lost.

Any inputs highly appreciate.

View Entire Topic

Avatar

Avatar

kiranparab

Avatar

kiranparab

kiranparab

21-01-2021

Hi,

 

Case A -

Looks like new logic " data-sly-test='logic' " returning false which don't allow to execute the inner portion

Case B -

If you have 2 different test conditions then define with variables like data-sly-test.new="logic" and data-sly-test.old="logic"

 

Thanks,

Kiran Parab