简体   繁体   中英

How to display image thumbnail instead in umbraco xslt?

Is there any way to display image thumb in xslt in umbraco?

Or I just need to chop the umbracoFile value and put '_thumb' in there?

Thanks

No, you are correct in your assumption that you just need to split on the umbracoFile value and stick "_thumb" in there.

This question has a solution or two for splitting strings: xsl: how to split strings?

You would need the "Plain XSLT 1.0 solution" as Umbraco uses XSLT 1.0, or you could use the EXSLT library which is I think is available n the Umbraco project.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM