Hey @bangar20
Consider the following example and see the text in bold :
In java:-
public List getTestList() {
return testList;
}
In HTML:-
<sly data-sly-use.useClassObj = "com.ups.components.use.ArrayListClassUse">
Size of List:- ${useClassObj .testList.size}
</sly>
Call the getTestList...
Hi,
You can use a groovy script to do the same.
Follow the below guide and write a groovy script :
https://hashimkhan.in/aem-adobecq5-code-templates/groovy-script/
And execute the same first in your local instance using the groovy console.
Thanks
Hi @chandrika123
The URL that is opened is localhost:4503/content/we-retail/us/en.html . It is serving content from the /content/we-retail/us/en page in your content hierarchy.
If you have created your own project, try with that path. For example : localhost:4503/content/your-project-name/us/en/...
Hi @Sanjana12
You just need to put the String in href attribute of anchor tag so that the hyperlink is added.
Please see the below code for <a> tag.
<div data-sly-list.item="${books.bookDetailsWithMap}">
<p> Book : <b>${item.bookname} </b></p>
<a href="${item.booksubject}"> Boo...
Logic remains the same. Pathfield would be fetched and stored as a String in Sling Model. So you can leverage the same logic. Just get the pathfield value in a variable and put it in the Map.
Hi,
We have been using custom AEM components in Adaptive Form Fragments. But since we are moving to AEM Cloud we do not have an option to add custom Components to Form Fragment.
Form Fragment is created with cq:template:/libs/fd/af/templateForFragment/defaultFragmentTemplate.
'defaultFragmentT...
Hi @Sanjana12 ,
You can use it in the following way.
In the component dialog if you are using Coral3 resource Types make sure to use the composite="{boolean}true". Please see the below dialog snippet
<bookdetailswithmap
jcr:primaryType="nt:unstructured"
...
Hi @Sanjana12
Can you elaborate? Are you getting the link from Author in a Multifield widget? And are you trying to fetch it in Sling Model so that you can return it to Frontend?
Hi @chandrika123 ,
1. Delete the crx-quickstart folder.
2. Rename File as aem-publish-p4503.jar
3. Make sure 4503 port is not being used by any other application.
4. Double click on the JAR. It should start the application on 4503 port.
If the issue persists
In crx-quickstart go to -> bin -> sta...