[opencms-dev] Scaling an Image automatically
Isaac R. Higgins
isaac.higgins at isaacray.com
Mon Feb 26 16:48:40 CET 2007
does the editor do this by default? Is there a way to force it to if it doesn't?
-----Original Message-----
From: opencms-dev-bounces at opencms.org on behalf of Christoph Schönfeld
Sent: Mon 2/26/2007 10:46 AM
To: The OpenCms mailing list
Subject: Re: [opencms-dev] Scaling an Image automatically
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
_______________________________________________
This mail is sent to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
http://lists.opencms.org/mailman/listinfo/opencms-dev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: winmail.dat
Type: application/ms-tnef
Size: 3145 bytes
Desc: not available
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20070226/293d4114/attachment.bin>
More information about the opencms-dev
mailing list