CQ 5.3: Configurazione dei rapporti di forma per Smart Image

Sintomi

Come si configura il widget aspectRatios per Smart Image in 5.3?

Risoluzione

Di seguito è riportato un esempio di configurazione del rapporto di forma. Questo è un nodo sotto il widget xtype di Smart Image.

<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>

NOTA: In CQ 5.2.x i tipi di nodo di cropConfig e aspectRatios erano cq:Widget. Nel QC 5.3, il tipo di nodo è stato cambiato in nt:unstructured.

Prodotti interessati:

CQ 5.3

Logo Adobe

Accedi al tuo account