cant sem to wrap my head around myt problem to day have uset the search and dint find the right topic "maby i do type the rong thing"
i have this macro ware i lowe to have the ancestor name to show up it is macro iam gona use on many pages so ancestor is gona change. it is the link i have made bolde i like to be the Ancestor
I running Umbraco v6.1.6 (Assembly version: 1.0.5021.24867) on privat server
/ Michael
@inherits umbraco.MacroEngines.DynamicNodeContext @* === Macro Parameters To Create === Show:True Alias:nodeId Name:Node ID Type:Content Picker *@
@{ var startNodeID = Parameter.nodeId; } @if (startNodeID != null) { @* Get the start node as a dynamic node *@ var startNode = Library.NodeById(startNodeID);
if (startNode.Children.Where("Visible").Any()) {
<h6>Produkter i <a href=" Ancestor link">Ancestor Name</a> </h6>
Show Ancestor in macro
Hey.
cant sem to wrap my head around myt problem to day have uset the search and dint find the right topic "maby i do type the rong thing"
i have this macro ware i lowe to have the ancestor name to show up it is macro iam gona use on many pages so ancestor is gona change. it is the link i have made bolde i like to be the Ancestor
I running Umbraco v6.1.6 (Assembly version: 1.0.5021.24867) on privat server
/ Michael
Cant Eny one help me?
is working on a reply...