Hi,
You can get the runmodes in sightly by a sling model
@PostConstructpublic void init() {String runModes = slingSettingsService.getRunModes().toString();}
or check below link
https://gist.github.com/gabrielwalt/278f8cee870aac7ec619
Hope this helps!
Hi,
You can use ReferenceSearch API to find whether the given asset is used on the site
ReferenceSearch referenceSearch = new ReferenceSearch();
referenceSearch.setExact(true);
referenceSearch.setHollow(true);
referenceSearch.setMaxReferencesPerPage(-1);
if(StringUtils.isNotBlank(searchPath)) ...
Hi,We are able to mock CA Config like below import static io.wcm.testing.mock.wcmio.caconfig.ContextPlugins.WCMIO_CACONFIG;import static org.apache.sling.testing.mock.caconfig.ContextPlugins.CACONFIG;import org.apache.sling.testing.mock.caconfig.MockContextAwareConfig;private AemContext aemContext =...
Hi,You need to have unique value for the node name instead of constant when we are looping, something like below<sly data-sly-resource="${'./title{0}' @ format=itemList.count, resourceType='/constellar-core/components/title}"></sly>
Hi,
Seems contexthub is enabled, check page component whether contexthub resource are added and remove it if not needed
https://experienceleague.adobe.com/docs/experience-manager-learn/sites/personalization/context-hub-technical-video-setup.html?lang=en
Are you seeing targeting mode selected on ...
Hi,
You can find the references of an image by selecting image, clicking on properties and check under references tab
Refer https://github.com/adobe/aem-core-wcm-components/blob/main/bundles/core/src/main/java/com/adobe/cq/wcm/core/components/models/Image.java for retrieving it from backend
...
Hi,
It is part of the ootb and no additional licensing is needed
Refer:
https://experienceleague.adobe.com/docs/experience-manager-learn/sites/personalization/context-hub-technical-video-setup.html?lang=en
Hi,
I only assume the above scenario will happen when the .html file which includes the clientlibs are not part of the page (component) html, check whether there are any conditions which are not passing to execute the clientlibs html file. Add some html tags to make sure the .html file is executing....
Hi,
We have to write custom logic to include additional tags to AEM clientlibs. You can refer below link for the same
https://github.com/arunpatidar02/aem63app-repo/blob/master/java/ClientLibsModel.java