Developer forum
E-mail notifications
LoopStart(Childgroups)
In a productlist template i am using:
LoopStart(Childgroups)
It seems like i do not have access to the navigation properties like:
show in menu
show in sitemap
clickable
I 'd like to exclude groups from displaying if it is not shown in menu for example.
Is this possible?
From the DwTemplateTags i am not seeing any suitable poperties.
Kind regards,
Remi
Replies
Hi Remi,
As I understand you are using Product Template Extender for rendering your tag. In that case you can get navigation xml and find all that you need there. For example:
Dynamicweb.Frontend.PageView Pageview = new Dynamicweb.Frontend.PageView();
Pageview.Load();
Dynamicweb.Frontend.XMLNavigation Nav = new Dynamicweb.Frontend.XMLNavigation(Pageview);
System.Xml.XmlDocument NavXmlDoc = Nav.XML(0, 1, 99, XMLNavigation.Expand.All);
If it is not your case, please provide with some more details.
Best regards,
Michael
Will have them added.
"Will have them added."
Remi.
And is it implemented? I can't see them?
I just used them in the Groups template. The tags show up inside
LoopStart(Groups)
LoopStart(Childgroups)
LoopEnd(Childgroups)
LoopEnd(Groups)
though I might have misunderstood your post B-)
The "show in menu" in a sub- or childgroup loop?
Memo to self: read the whole thread before posting.....
You must be logged in to post in the forum