From: <fg...@us...> - 2009-09-02 10:36:20
|
Revision: 1322 http://openutils.svn.sourceforge.net/openutils/?rev=1322&view=rev Author: fgiust Date: 2009-09-02 10:36:12 +0000 (Wed, 02 Sep 2009) Log Message: ----------- media:size() additional documentation Modified Paths: -------------- trunk/openutils-mgnlmedia/src/main/resources/META-INF/media.tld Modified: trunk/openutils-mgnlmedia/src/main/resources/META-INF/media.tld =================================================================== --- trunk/openutils-mgnlmedia/src/main/resources/META-INF/media.tld 2009-08-28 14:25:43 UTC (rev 1321) +++ trunk/openutils-mgnlmedia/src/main/resources/META-INF/media.tld 2009-09-02 10:36:12 UTC (rev 1322) @@ -14,7 +14,7 @@ <description> <![CDATA[ Media tag that renders according to media type. <br/> - + The following properties are supported: <table> <tr> @@ -35,7 +35,7 @@ </tr> <tr> <td> - item + item </td> <td> true @@ -49,7 +49,7 @@ width </td> <td> - false for images, true for videos or mp3 + false for images, true for videos or mp3 </td> <td> image or player width @@ -60,7 +60,7 @@ height </td> <td> - false for images, true for videos or mp3 + false for images, true for videos or mp3 </td> <td> image or player height @@ -82,7 +82,7 @@ cssClass </td> <td> - false + false </td> <td> cssClass to be applied on html element @@ -93,7 +93,7 @@ style </td> <td> - false + false </td> <td> style to be applied on html element @@ -104,7 +104,7 @@ resize </td> <td> - false + false </td> <td> valid values are 'fit', 'nocrop', 'crop' @@ -115,7 +115,7 @@ ignoreDim </td> <td> - false + false </td> <td> if true the img element will be rendered without width and height attributes @@ -126,7 +126,7 @@ autoPlay </td> <td> - false + false </td> <td> auto starts the player without waiting for user play command @@ -166,7 +166,7 @@ </td> </tr> </table> - + For videos or mp3s it needs the following scripts loaded in page: <ul> <li>.resources/media/js/mootools-1.2-core.js</li> @@ -358,7 +358,8 @@ </function> <function> <name>size</name> - <description>Get the real size of a resolution for a given media node (image or flv/youtube preview)</description> + <description>Get the real size of a resolution for a given media node (image or flv/youtube preview). + Parameters are the media node and a resolution. You can use 'original' as resolution to get the size of the original image</description> <function-class>net.sourceforge.openutils.mgnlmedia.media.tags.el.MediaEl</function-class> <function-signature>int[] getSize(info.magnolia.cms.core.Content, java.lang.String)</function-signature> <example> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |