What I am looking for is to show the sub categories menu on every node like contact us , services etc, I can acheive that by using simple razor syntax like :
@inherits umbraco.MacroEngines.DynamicNodeContext
@{
foreach (var c in Model.NodeById(1001).Descendants().Where("umbracoNaviHide != true"))
{<a href="@c.Url">@c.Name</a> } }
Where 1001 is the node for category.
What I want to show is the static display image which all the categories have which have a document type main image. I tried something like this with no success:
@inherits umbraco.MacroEngines.DynamicNodeContext
@{
foreach (var c in Model.NodeById(1001).Descendants())
Using Document type for Navigation
Hi , A part of my tree is like :
Categories
sub-category1
sub-category2
sub-category2
ContactUs
Services
What I am looking for is to show the sub categories menu on every node like contact us , services etc, I can acheive that by using simple razor syntax like :
@inherits umbraco.MacroEngines.DynamicNodeContext
@{
foreach (var c in Model.NodeById(1001).Descendants().Where("umbracoNaviHide != true"))
{<a href="@c.Url">@c.Name</a> } }
I guess you need to change @Model.GetProperty("serviceImage").Value into @c.GetProperty("serviceImage").Value
Cheers,
/Dirk
Cheers well i just sorted out and was about to reply ... nyway but u won :). So that means we can use document type properties on any templates??
is working on a reply...