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 installed the following packages related to DAMP:
On the DAMP Property Editor Value Converter page it says the following:
"There are 2 versions of this package. The first version is called the DAMP Razor Model and works on Umbraco 126.96.36.199 and higher with the old Razor: http://bit.ly/SV0jc6
The second version is called the DAMP Property Editor Value Converter and works on Umbraco 4.10 and higher with the new Razor: http://bit.ly/VTMAFC"
You installed the second version for the new Razor, but when I look at your code your using the old Razor. The new Razor is used on template views when the website has the defaultRenderingEngine set to MVC. The old Razor is used in macro's.
Installing the DAMP Razor Model probably solves your problem.
OK - That makes some sense. I would recommend you clarify your package documentation to say instead of "New Razor" and "Old Razor" that you instead specify whether you're using Mvc or not. Otherwise I assumed that New Razor and Old Razor simply had to do with the version of Umbraco that was installed. I'll try this and get back to you. Thanks.
Thanks for the feedback. I agree with you that there should be more clarity between the different version of Razor in Umbraco, but that should be the responsibility of Umbraco and not me. They created 2 different versions without writing a lot of info about it. Maybe this topic can help: https://groups.google.com/d/msg/umbraco-dev/WC_7OTF_lO0/31b_k4vsJ90J
Ok, I've found this post which clarifies some things.
Basically, I have the same problem as Nick.
I have Umbraco 6.1.6
I installed Digibiz Advanced Media Picker v2.8
Installed DAMP Razor Model v1.2
here is my xml from umbraco.Config:
<Image id="1069" version="aca7833b-9167-4c88-a5a4-7bf77bb13611" parentID="1066" level="2" writerID="0" nodeType="1032" template="0" sortOrder="2" createDate="2014-01-14T17:53:59" updateDate="2014-01-14T17:53:59" nodeName="Financials Workflow" urlName="financialsworkflow" writerName="zakhar" nodeTypeAlias="Image" path="-1,1066,1069">
<Image id="1068" version="96510599-85fa-4442-9fc0-db63121d6175" parentID="1066" level="2" writerID="0" nodeType="1032" template="0" sortOrder="1" createDate="2014-01-14T17:53:58" updateDate="2014-01-14T17:53:58" nodeName="DATAFLOW" urlName="dataflow" writerName="zakhar" nodeTypeAlias="Image" path="-1,1066,1068">
Im trying to do this:
@foreach (dynamic d in ver.Images)
<a class="popup" rel="gallery" href="#">
<img src="@(d.Url)" alt=""/>
'Umbraco.Core.Dynamics.DynamicXml' does not contain a definition for 'Url'
I'm lost at this point, is it old or new Razor I'm using? I simply need to get my image url, do I need to install anything else? Where can I find an example of "new razor"?
Any help will be greatly appreciated.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted