[opencms-dev] Scaling an Image automatically
Christoph Schönfeld
cschoenfeld at sylphen.com
Mon Feb 26 16:46:41 CET 2007
Here is an example showing the use of server-side image scaling to
100x75 px in combination with the contentload tag:
<%@ taglib prefix="cms" uri="http://www.opencms.org/taglib/cms"%>
...
<cms:contentload ...>
<cms:img width="100" height="75" border="0">
<cms:param name="src">
<cms:contentshow element="TeaserPicture"/>
</cms:param>
</cms:img>
</cms:contentload>
The src attribute must be an absolute URL.
If you do not use contentload you can also inline the src attribute
instead of defining it in the cms:param tag.
Best regards,
Christoph
More information about the opencms-dev
mailing list