Actually, I am trying to format the string inside the div and when I implement the string format, I am getting a syntax error.
Error, I am getting.
"org.apache.sling.api.SlingException: Cannot get DefaultSlingScript: Identifier card.html cannot be correctly instantiated by the Use API"
And the code is
title="${item.includeIcon =='true' ? '<div class=\'sec-secondary-headings\'><h3>{0}</h3></div><div class=\'sec-paragraph\'><div class=\'p3\'>{1}</div> </div> @ format=[item.toolTitle, item.toolDescription]' : ''}"
I don't know what I am doing wrong. Could someone help me, please?
Solved! Go to Solution.
Views
Replies
Total Likes
Hi,
You cannot assign the the html tags value in attribute.
Please check similar thread here https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/tooltip-syntax-error/m-p/4...
Hi @Ameen_Dev ,
Can you please check error.log? Is there any exception? That helps to tackle issue.
Below is one of the example.
${'Page {0} of {1}' @ format = [1, 10]}
Page 1 of 10
Regards,
Santosh
@SantoshSai My Apology. I forgot to add the exact code. I have modified the code above. Please have a look. And by the way, there is no specific error in the error log.
Just getting this - "org.apache.sling.api.SlingException: Cannot get DefaultSlingScript: org.apache.sling.api.resource.ResourceNotFoundException: Resource at '/content/dam/en/error/404' not found: No resource found"
@SantoshSai In the generic use case, it's working. In my case, it's not working.
Hi,
You cannot assign the the html tags value in attribute.
Please check similar thread here https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/tooltip-syntax-error/m-p/4...
Views
Likes
Replies