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
Sorry for all the posts, I'm just checking here first to see if I'm not doing things wrong, before adding issues to Codeplex.
So according to the comments in this changeset, I should be able to do some really cool DynamicXml stuff.
Now, my input is this:
<picker> <DAMP fullMedia=""> <mediaItem> <Image id="8650" version="53392f76-fc34-40af-b0f3-ec9751ebe785" parentID="5204" level="2" writerID="0" nodeType="1032" template="0" sortOrder="20" createDate="2011-02-18T11:32:33" updateDate="2011-02-18T11:32:33" nodeName="raketje_01" urlName="raketje_01" writerName="Administrator" nodeTypeAlias="Image" path="-1,5204,8650"> <umbracoFile>/media/1688075/raketje_01.jpg</umbracoFile> <umbracoWidth>652</umbracoWidth> <umbracoHeight>211</umbracoHeight> <umbracoBytes>43436</umbracoBytes> <umbracoExtension>jpg</umbracoExtension> <imageCrop> <crops date="18/02/2011 11:32:33"> <crop name="Large" x="0" y="0" x2="652" y2="210" url="/media/1688075/raketje_01_Large.jpg" /> <crop name="Medium" x="124" y="0" x2="527" y2="211" url="/media/1688075/raketje_01_Medium.jpg" /> <crop name="Small" x="220" y="0" x2="431" y2="211" url="/media/1688075/raketje_01_Small.jpg" /> </crops> </imageCrop> </Image> </mediaItem> </DAMP> </picker>
So I expect to be able to do:
@Model.Picker.Damp.MediaItem.Image.UmbracoFile
But unfortunately it gives me this error:
'umbraco.MacroEngines.DynamicXml' does not contain a definition for 'Damp'
Am I doing it wrong? Tried with capitals in the correct places as well, but it just doesn't know what Damp is.
DynamicXML is case sensitive, did you try DAMP?
Is .Picker in your sample the alias for the property containing the XML?
You omit the root node when using it btw
Yes, I tried DAMP, but as I read it now I should use :
@Model.Picker.mediaItem.Image.umbracoFile
As Picker is the property, I leave out the root node which is Damp and the casing is then correct. I'll report back after trying it, thanks!
W00t! That worked :-D
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
DynamicXml not working?
Sorry for all the posts, I'm just checking here first to see if I'm not doing things wrong, before adding issues to Codeplex.
So according to the comments in this changeset, I should be able to do some really cool DynamicXml stuff.
Now, my input is this:
So I expect to be able to do:
But unfortunately it gives me this error:
'umbraco.MacroEngines.DynamicXml' does not contain a definition for 'Damp'
Am I doing it wrong? Tried with capitals in the correct places as well, but it just doesn't know what Damp is.
DynamicXML is case sensitive, did you try DAMP?
Is .Picker in your sample the alias for the property containing the XML?
You omit the root node when using it btw
Yes, I tried DAMP, but as I read it now I should use :
As Picker is the property, I leave out the root node which is Damp and the casing is then correct. I'll report back after trying it, thanks!
W00t! That worked :-D
is working on a reply...