最終更新日 :
Apr 28, 2021 12:09:15 AM GMT
現象
5.3のスマート画像ウィジェットの縦横比をどのように設定しますか。
解決策
縦横比
のサンプル設定は次のとおりです。これはスマート画像
xtype ウィジェットの下にノードを指定します。
<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>
注意 : CQ5.2.x での cropConfig
および aspectRatios
のノードタイプが cq:Widget
.CQ5.3で、ノードタイプが nt:unstructured
に変更されました。
適用対象
CQ5.3
アカウントにログイン