I have a backend Sling model which fetches the asset path and then fetches the description from the asset and I display the same in HTL using helper class. It is working for all image types but not for svg images. What maybe the issue here?
@EstebanBustamante - Also I'm getting an error like the following when I'm using the above snippet. But the error goes away when I remove the following in HTL.@ context='html'
Hi @EstebanBustamante , can you please let me know why we are using the exporter annotation? I don't want to export the content to json or any other form, then what is the sue of @Exporter annotation.
I have an asset in /content/dam/myproject/<assetFile> the hierarchy being :I will get the path of the image from dialog and I have injected the same in the sling model.@inject
private String imagePath My ultimate aim is to traverse to the metadata node and get a certain property from there. Can some...
I have say 15 pages under /content/project/target/* . Now all these 15 pages are using some hero image. What I want to do is download those hero images from those 15 pages into my local. Can someone suggest a way and also help with the relevant code/query ?NOTE : I don't want to go manual. Like take...
Say I have multiple pages under /content/practice/articles. Now in /content/practice/articles/firstpage/jcr:content there is a property named myImage. I want to read and fetch that value from myImage property which is a path basically.
Now I want to navigate to /content/practice/articles/firstpage...
Hi @Nitin_laad , need some more help. Can you please surround this with try/catch block? And in my scenario there are 500 pages under /content/practice/articles. So can you please format the code accordingly? Like get all nodes under that path and then maybe fetch that nod get the property value and...