I'm new to all this and was wondering if anyone can help or point me in the right direction?
I'm using V7.1.4
On my homepage I want to display a sidebar with some Case Studies on it, i have added MNTP to the Homepage and selected the Case Studies I want to display, I'm trying to get properties from the Case Study page to display on the Homepage, I can get all the properties i need but only the node id of the image and not the actual image ("thumb"), the code i have is;
@inherits Umbraco.Web.Mvc.UmbracoTemplatePage
@{
var workList = CurrentPage.relatedWork.ToString().Split(new string[] { "," }, StringSplitOptions.RemoveEmptyEntries);
Help with MultiNodeTreePicker
Hi,
I'm new to all this and was wondering if anyone can help or point me in the right direction?
I'm using V7.1.4
On my homepage I want to display a sidebar with some Case Studies on it, i have added MNTP to the Homepage and selected the Case Studies I want to display, I'm trying to get properties from the Case Study page to display on the Homepage, I can get all the properties i need but only the node id of the image and not the actual image ("thumb"), the code i have is;
@inherits Umbraco.Web.Mvc.UmbracoTemplatePage
@{
var workList = CurrentPage.relatedWork.ToString().Split(new string[] { "," }, StringSplitOptions.RemoveEmptyEntries);
var workCollection = Umbraco.Content(workList);
foreach (var work in workCollection)
{
<p>@work.Id</p>
<p>@work.Name</p>
<p><a href="@work.Url">@work.caseStudyTitle</a></p>
<p>@work.intro</p>
<p>@work.thumb</p>
}
}
Thanks
Hi Kerri,
Welcome to Our!
Try this:
Jeavon
Thanks Jeavon, that works :)
Perfect, I just corrected a mistake in the
HasValue("mainImage")
, should beHasValue("thumb")
for youis working on a reply...