Esta conversación ha sido bloqueada debido a la inactividad. Cree una nueva publicación.
Nivel 1
Nivel 2
Iniciar sesión en la comunidad
Iniciar sesión para ver todas las insignias
Esta conversación ha sido bloqueada debido a la inactividad. Cree una nueva publicación.
<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.
¡Resuelto! Ir a solución.
Vistas
Respuestas
Total de me gusta
If your first condition is rely on some new properties then yes the condition will always be a false and you will not see any content. If this is a case then add complex condition
e.g. <sly data-sly-test="{properties.newProp && logic}">
Vistas
Respuestas
Total de me gusta
I don't think you need inner test condition because you are already checking on top. Try removing the inner/old/existing test condition.
Hope that works.
-AG
Vistas
Respuestas
Total de me gusta
Vistas
Respuestas
Total de me gusta
Vistas
Respuestas
Total de me gusta
@JakeCham Please provide some sample code snippet just to know what you are actually doing?
Vistas
Respuestas
Total de me gusta
Try to add variables to your sightly elements.
<sly data-sly-test.modelA="com.mysite.core.slingmodels.button"> //Newly added logic
<sly data-sly-test.modelB="com.mysite.core.slingmodels.buttonflat"> //existing logc
</sly>
</sly>
Vistas
Respuestas
Total de me gusta
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
Vistas
Respuestas
Total de me gusta
Vistas
Respuestas
Total de me gusta
Vistas
me gusta
Respuestas
Vistas
me gusta
Respuestas
Vistas
me gusta
Respuestas