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

Questo prodotto è concesso in licenza in base alla licenza di Attribuzione-Non commerciale-Condividi allo stesso modo 3.0 Unported di Creative Commons.  I post su Twitter™ e Facebook non sono coperti dai termini di Creative Commons.

Note legali   |   Informativa sulla privacy online