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
Hey All,
Want to start using DAMP on a project and i current having it working using simple upload data type.
<img src="/[email protected]("blogmainImage").Value&width=900&height=400&Constrain=False" alt="@n.GetProperty("uBlogsyContentTitle").Value" title="@n.GetProperty("uBlogsyContentTitle").Value" />
I have changed the data type to DAMP 2.0 - New wide sample but I'm unsure how to integrate the razor code, would it be
@foreach (DynamicNode n in nodes)
{
dynamic media = Model.dampProperty.First;
int slidecount = @n.Index() + 1;
string csstext = "slide" + slidecount;
<div id='@csstext' class="slide">
<a href="@n.Url">
<img src="/[email protected]&width=900&height=400&Constrain=False" alt="@n.GetProperty("uBlogsyContentTitle").Value" title="@n.GetProperty("uBlogsyContentTitle").Value" />
</a>
</div>
}
TIA
S
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Display using razor in a foreach
Hey All,
Want to start using DAMP on a project and i current having it working using simple upload data type.
<img src="/[email protected]("blogmainImage").Value&width=900&height=400&Constrain=False" alt="@n.GetProperty("uBlogsyContentTitle").Value" title="@n.GetProperty("uBlogsyContentTitle").Value" />
I have changed the data type to DAMP 2.0 - New wide sample but I'm unsure how to integrate the razor code, would it be
@foreach (DynamicNode n in nodes)
{
dynamic media = Model.dampProperty.First;
int slidecount = @n.Index() + 1;
string csstext = "slide" + slidecount;
<div id='@csstext' class="slide">
<a href="@n.Url">
<img src="/[email protected]&width=900&height=400&Constrain=False" alt="@n.GetProperty("uBlogsyContentTitle").Value" title="@n.GetProperty("uBlogsyContentTitle").Value" />
</a>
</div>
}
TIA
S
is working on a reply...