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

更快、更輕鬆地獲得協助

新的使用者?

Adobe MAX 2024

Adobe MAX
創意大會

10 月 14 至 16 日邁阿密海灘和線上

Adobe MAX

創意大會

10 月 14 至 16 日邁阿密海灘和線上

Adobe MAX 2024

Adobe MAX
創意大會

10 月 14 至 16 日邁阿密海灘和線上

Adobe MAX

創意大會

10 月 14 至 16 日邁阿密海灘和線上