CQ 5.3: Configuration of aspectRatios for smartimage

Symptoms

How do I configure the aspectRatios for smartimage widget in 5.3?

Resolution

Below is a sample configuration of aspectRatios. This is a node under the smartimage xtype widget.

<cropConfig jcr:primaryType="nt:unstructured"> 
   <aspectRatios jcr:primaryType="nt:unstructured"> 
      <home_large 
         jcr:primaryType="nt:unstructured" 
         text="Home Large" 
         value="480,173"/> 
     <home_small 
         jcr:primaryType="nt:unstructured" 
         text="Home Small" 
         value="230,173"/> 
      <small 
         jcr:primaryType="nt:unstructured" 
         text="Small" 
         value="313,222"/> 
      <medium 
         jcr:primaryType="nt:unstructured" 
         text="Medium" 
         value="480,222"/> 
      <large 
         jcr:primaryType="nt:unstructured" 
         text="Large" 
         value="646,222"/> 
   </aspectRatios> 
</cropConfig> 

NOTE: In CQ 5.2.x the nodetype of cropConfig and aspectRatios were cq:Widget. In CQ 5.3, the nodetype has been changed to nt:unstructured.

Applies to

CQ 5.3

Adobe-logo

Log ind på din konto