Developer forum

Forum » Development » LoopStart(Childgroups)

LoopStart(Childgroups)


Reply
 Hi,

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

 
Reply

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

 
Nicolai Høeg Pedersen
Reply
Think this is a matter of missing template tags....

Will have them added.
 
Reply
Yes it is about missing template tags in a standard productlist template. No extenders and api.

"Will have them added."
Thanks.

Remi.

 
Reply
 This is added as a feature request.
 
Michael Fløe Haug
Reply

And is it implemented? I can't see them?

 
David Matheson
Reply

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-)

 
Michael Fløe Haug
Reply

The "show in menu" in a  sub- or childgroup loop?

 
David Matheson
Reply

Memo to self: read the whole thread before posting.....

 

You must be logged in to post in the forum