Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I have the access to path of an image in xslt. How I can get the its size in the xslt?
Hi rajeev,
You have the following info available on default Image nodes in Media:
/Chriztian
correct in a xslt where I want to show this detail, I have only path to image which specified via xslt parameter
If you want all the media details in the umbraco.config xml you can use my package the Digibiz Advanced Media Picker. You can also just store the id like with the normal media picker, but you can also have multiple items in 1 picker.
Example of umbraco.config:
Jeroen
Can you please suggest me how should be xslt to show its media image id.
Here is an xslt sample I use with the Digibiz Advanced Media Picker:
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp " "> ]> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxml="urn:schemas-microsoft-com:xslt" xmlns:umbraco.library="urn:umbraco.library" xmlns:Exslt.ExsltCommon="urn:Exslt.ExsltCommon" xmlns:Exslt.ExsltDatesAndTimes="urn:Exslt.ExsltDatesAndTimes" xmlns:Exslt.ExsltMath="urn:Exslt.ExsltMath" xmlns:Exslt.ExsltRegularExpressions="urn:Exslt.ExsltRegularExpressions" xmlns:Exslt.ExsltStrings="urn:Exslt.ExsltStrings" xmlns:Exslt.ExsltSets="urn:Exslt.ExsltSets" exclude-result-prefixes="msxml umbraco.library Exslt.ExsltCommon Exslt.ExsltDatesAndTimes Exslt.ExsltMath Exslt.ExsltRegularExpressions Exslt.ExsltStrings Exslt.ExsltSets "> <xsl:output method="html" omit-xml-declaration="yes" indent="yes"/> <xsl:param name="currentPage"/> <xsl:template match="/"> <!--In "classic" only 1 id can be stored.--> Classic:<br/><br/> <img src="{umbraco.library:GetMedia($currentPage/classic, 0)/umbracoFile}" height="150px;" /> <br/><br/> <!--In "new" multiple media items can be stored with the full media xml.--> New:<br/><br/> <xsl:for-each select="$currentPage/new/DAMP[@fullMedia]/mediaItem/Image"> <img src="{umbracoFile}" height="150px;"/> <br/> <br/> </xsl:for-each> </xsl:template> </xsl:stylesheet>
And here you can watch a movie on how to use it: http://screenr.com/TEY.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
get media details e.g.its size using the path to image in xslt
I have the access to path of an image in xslt. How I can get the its size in the xslt?
Hi rajeev,
You have the following info available on default Image nodes in Media:
/Chriztian
correct in a xslt where I want to show this detail, I have only path to image which specified via xslt parameter
If you want all the media details in the umbraco.config xml you can use my package the Digibiz Advanced Media Picker. You can also just store the id like with the normal media picker, but you can also have multiple items in 1 picker.
Example of umbraco.config:
Jeroen
Can you please suggest me how should be xslt to show its media image id.
Here is an xslt sample I use with the Digibiz Advanced Media Picker:
Jeroen
And here you can watch a movie on how to use it: http://screenr.com/TEY.
Jeroen
is working on a reply...