Code for retrieving an image does not match what's documented
I am pretty new at umbraco and have recently run across something that seems strange. I have been trying to use media picker to place an editable image in my template. I read several posts that include the following code:
The XML format was changed from version 4.0 to 4.5 - so you might want to look around the forum for some more in-depth explanations to this.
(Also, on a sidenote, the 'true' argument should really be true(), which is the correct way to signal a boolean true in XSLT - 'true' works, but only because any string will evaluate to a boolean true value...)
in the new version of umbraco, 4.5, the xml shema was changed and I think your first code example worked with the previous versions. You can start reading about it here and here.
@bfi Thanks for the response and the links! To complicate matters I have a local installation that uses the new version and an online installation that uses the old. I found this post on upgrading to Umbraco 4.5 - Is that current or do you recommend another procedure? @Chriztian thanks for the xslt info, again I am new to this and I was copying verbatim from what was posted here.
Code for retrieving an image does not match what's documented
I am pretty new at umbraco and have recently run across something that seems strange. I have been trying to use media picker to place an editable image in my template. I read several posts that include the following code:
However this does not work on my local installation.
What works is this code:
It took me quite a while to figure this out. Does anybody know what might be the problem with my installation or where I might start looking? Thanks!
Hi Thomas,
The XML format was changed from version 4.0 to 4.5 - so you might want to look around the forum for some more in-depth explanations to this.
(Also, on a sidenote, the 'true' argument should really be true(), which is the correct way to signal a boolean true in XSLT - 'true' works, but only because any string will evaluate to a boolean true value...)
/Chriztian
Hello Thomas,
in the new version of umbraco, 4.5, the xml shema was changed and I think your first code example worked with the previous versions. You can start reading about it here and here.
Hope this helps!
@bfi Thanks for the response and the links! To complicate matters I have a local installation that uses the new version and an online installation that uses the old. I found this post on upgrading to Umbraco 4.5 - Is that current or do you recommend another procedure? @Chriztian thanks for the xslt info, again I am new to this and I was copying verbatim from what was posted here.
Yes, that is a good place to start. Be sure to get the latest version from codeplex , for .net 4 or 3.5 depending on your needs.
Good luck!
is working on a reply...