How do I get the shop node to integrate into an existing sites navigation?
I have this code which targets the home node and below.... but don't have the experience, know how. knowledge to include a node which resides below this node
Totally stumped :(
@inherits umbraco.MacroEngines.DynamicNodeContext
@{
var root = @Model.AncestorOrSelf("Home");
}
<ul>
@foreach (var page in root.Children.Where("Visible"))
if youve installed the razor store it has placed it self as a sibling to your Home node, what you want is properly to move it, in under your home node if you want it to appear in the menu, if you just want to acces the razor store to look at i would set up a different hostname for it, and add that to the razor store root node :)
I tried your solution Kasper, and all the navigation stopped working in the store (categories, products etc) - so I moved it back - is there a setting I should have changed?
How to integrate demo shop into exisiting nav?
How do I get the shop node to integrate into an existing sites navigation?
I have this code which targets the home node and below.... but don't have the experience, know how. knowledge to include a node which resides below this node
Totally stumped :(
Im not quite sure what you are trying to accomplish. Is the shop node part of the Model node list?
if youve installed the razor store it has placed it self as a sibling to your Home node, what you want is properly to move it, in under your home node if you want it to appear in the menu, if you just want to acces the razor store to look at i would set up a different hostname for it, and add that to the razor store root node :)
hope this helps :)
I tried your solution Kasper, and all the navigation stopped working in the store (categories, products etc) - so I moved it back - is there a setting I should have changed?
well the demo shop menu properly asumes that it is root node, why yous stopped working, i dont know.
but if i were you i would set up a sub site for the demo shop, ex. shop.domain.com and set it to the host for the shop :)
is working on a reply...