How to fetch current resource path in Datasource ?

Need to fetch the current component resource path in repository, use below code in your datasource file

 

Read More

Customize Touch UI

Customize Touch UI dialog for Image Component

 

 This article talks about disabling the ‘File Upload’ option for the image component in Touch UI dialog (screenshot shown below). This also helps in understanding Customizing the Touch UI dialog Inheriting the foundation component Lets follow the below steps: Create a custom image component under /apps/<your-app>/components/ Add a property sling:resourceSuperType = wcm/foundation/components/image to inherit the OOB image […]

Read More