<![CDATA[Dynamic Image Size Demo]]> 63d20ff8-8acb-11e0-a3d4-eda89ab1c2d4 This example demonstrates how to scale the size of an image dynamically. The scaling depends on the width of the container, in which this article is dropped.

The image size is set dynamically inside of the formatter using container width. You have to define the container width as an attribute of the <cms:container> tag inside of the template. Then you can access the container with inside of the formatter.

 

Please check following formatters to get more implementation details:

/system/modules/org.opencms.dev.demo/elements/article/center.jsp

/system/modules/org.opencms.dev.demo/elements/article/side.jsp

 

This article uses material from the Wikipedia article Gerbera and is licensed under the GNU Free Documentation License.

]]>
b8333bd2-7727-11e0-a2f4-eda16dd9314c