Hi!
I'm working on an Ecom webshop where I want to display the groups and subgroups as menus and when you click on a specific subgroup the product list shall be displayed.
"dwnav" class=
"dwnavigation" settings="startlevel:1;endlevel:1;template:EcomGroup.xslt;">
But my menu doesn't show up. How do I connect a menu to a page using the layout based design? I have selected "groups" as a menu for the startpage, but as I said, it doesn't show up.
Best regards,
Per Ljung
Developer forum
E-mail notifications
Layoutbased design and ecom menus
Posted on 17/09/2010 14:41:00
Replies
Nicolai Høeg Pedersen
Posted on 17/09/2010 15:25:00
Hi
Attached 3 xslt's you can use with a layout that displays a correct group structure.
TopNavigationEcom.xslt shows 1 level in i.e. a top navigation
LeftNavigation shows 2. to N levels in i.e. a left navigation
Breadcrumb.xslt shows a breadcrumb.
Use them with these settings in your layout template:
<ul class="dwnavigation" id="topnav" settings="endlevel:1;template:TopNavigationEcom.xslt;"></ul>
<ul class="dwnavigation" id="leftnav" settings="startlevel:1;endlevel:4;template:LeftNavigationEcom.xslt;"></ul>
<ul id="breadcrumbnav" class="dwnavigation" settings="template:breadcrumb.xslt;expandmode:pathonly;"></ul>
Lets say you have a structure that looks something like this:
Home
- Subpage 1
- Subpage 2
Products
- {You want your group structure here}
About
- Subpage 1
- Subpage 2
Contact
- Subpage 1
- Subpage 2
In administration of Dynamicweb, go to the "Products" page, choose properties, go to the options tag, choose navigation and set up the ecommerce there:
http://manual.net.dynamicweb.dk/Default.aspx?ID=6707#29392
Choose "eCom groups", set parent group to "Groups" and set Groups to "All groups".
Attached 3 xslt's you can use with a layout that displays a correct group structure.
TopNavigationEcom.xslt shows 1 level in i.e. a top navigation
LeftNavigation shows 2. to N levels in i.e. a left navigation
Breadcrumb.xslt shows a breadcrumb.
Use them with these settings in your layout template:
<ul class="dwnavigation" id="topnav" settings="endlevel:1;template:TopNavigationEcom.xslt;"></ul>
<ul class="dwnavigation" id="leftnav" settings="startlevel:1;endlevel:4;template:LeftNavigationEcom.xslt;"></ul>
<ul id="breadcrumbnav" class="dwnavigation" settings="template:breadcrumb.xslt;expandmode:pathonly;"></ul>
Lets say you have a structure that looks something like this:
Home
- Subpage 1
- Subpage 2
Products
- {You want your group structure here}
About
- Subpage 1
- Subpage 2
Contact
- Subpage 1
- Subpage 2
In administration of Dynamicweb, go to the "Products" page, choose properties, go to the options tag, choose navigation and set up the ecommerce there:
http://manual.net.dynamicweb.dk/Default.aspx?ID=6707#29392
Choose "eCom groups", set parent group to "Groups" and set Groups to "All groups".
Posted on 20/09/2010 10:49:34
Hi again!
But I don't want the groups as submenus to the products page, the groups shall be displayed independently from the page structure.
Best regards,
P
But I don't want the groups as submenus to the products page, the groups shall be displayed independently from the page structure.
Best regards,
P
Posted on 20/09/2010 10:55:08
try the parentid setting when setting the menu. Should do the trick. You have to have a page just for it.
//nuno
//nuno
Nicolai Høeg Pedersen
Posted on 21/09/2010 11:02:20
Attached a new version of the EcomLeftNavigation that you can use for what you want.
Use this markup as settings and follow the instructions I've provided for the other template.
Use this markup as settings and follow the instructions I've provided for the other template.
Posted on 05/10/2010 11:11:56
Hi!
The result I get displays all groups, I want to display the first level groups, and when I click or hover over the group links I want to display the subgroups of that group.
The settings endlevel and startlevel don't seem to work.
Best regards,
P
The result I get displays all groups, I want to display the first level groups, and when I click or hover over the group links I want to display the subgroups of that group.
The settings endlevel and startlevel don't seem to work.
Best regards,
P
Nicolai Høeg Pedersen
Posted on 05/10/2010 11:56:24
Hi P
Remember to apply either LeftNavigationEcom.xslt or LeftNavigationEcomAny.xslt - and not use the default .xslt template. They are attached to some of the threads. They have a check for inpath=true before they go recursive.
Endlevel does not have an effect on ecommerce groups - only pages in the structure.
Remember to apply either LeftNavigationEcom.xslt or LeftNavigationEcomAny.xslt - and not use the default .xslt template. They are attached to some of the threads. They have a check for inpath=true before they go recursive.
Endlevel does not have an effect on ecommerce groups - only pages in the structure.
Posted on 05/10/2010 15:29:46
But the InPath doesn't seem to work, I have read other threads saying that variable isn't available with Ecom groups.
I have added a check @Active, but this always seem to be true for both the parent groups and the subgroups. If I add @Active = 'False' I get all the groups, but formatted so you can see which parent group they belong to.
Best regards,
P
I have added a check @Active, but this always seem to be true for both the parent groups and the subgroups. If I add @Active = 'False' I get all the groups, but formatted so you can see which parent group they belong to.
Best regards,
P
Nicolai Høeg Pedersen
Posted on 05/10/2010 15:52:57
If you have &GroupID=xxx in the querystring InPath will work.
Otherwise not - so linking to a product would be &GroupID=xx&ProdID=yy.
The reason for this is, that a product can be in more than one category giving too many inpath=true - so it is querstring that decides on this and not the settings in the database.
Try having a look at this site - one used for training on ecommerce implementations:
http://site0.training.dynamicweb.dk/Default.aspx?ID=48
Otherwise not - so linking to a product would be &GroupID=xx&ProdID=yy.
The reason for this is, that a product can be in more than one category giving too many inpath=true - so it is querstring that decides on this and not the settings in the database.
Try having a look at this site - one used for training on ecommerce implementations:
http://site0.training.dynamicweb.dk/Default.aspx?ID=48
Posted on 05/10/2010 16:23:26
Hi again!
But why does this statement always return true?
<xsl:if test="count(Page)and @InPath='True'">
But why does this statement always return true?
<xsl:if test=
<ul class="M{@AbsoluteLevel}">
"Page">
"depth" select="$depth+1"/>
</ul>
Best regards,
P
Nicolai Høeg Pedersen
Posted on 05/10/2010 16:31:18
Think I need a URL to help you on that.
You can always add &savexml=true - that will save the current xml document next to your xslt template so you can see the data you are working on.
If GroupID=xxx is specified in the querystring, @InPath='True' will not always return true.
You can always add &savexml=true - that will save the current xml document next to your xslt template so you can see the data you are working on.
If GroupID=xxx is specified in the querystring, @InPath='True' will not always return true.
Posted on 05/10/2010 16:49:59
Very strange, I can see that every node except the top page has InPath='False'. Are there any other settings that need to be made in the admin interface?
Best regards,
Per
Best regards,
Per
Nicolai Høeg Pedersen
Posted on 06/10/2010 09:40:47
If only top page node has inpath=true, you are on the top page.
I really would like a url to the site you are working on. You can mail me and I'll have someone take a look
I really would like a url to the site you are working on. You can mail me and I'll have someone take a look
Posted on 06/10/2010 09:53:05
Hi, what's your email?
Are you working on Dynamicweb Software AS?
Best regards,
Per
Are you working on Dynamicweb Software AS?
Best regards,
Per
Nicolai Høeg Pedersen
Posted on 06/10/2010 10:00:08
Yes!
Michael Nielsen
Posted on 21/10/2011 10:33:25
Is there anything special one should do on multilingual sites regarding eCom menu?
I have a problem with an eCom left menu where all the groups are present and the language and links get mixed up.
http://developer.dynamicweb-cms.com/forum/ecommerce---standard-features.aspx
As you can see it's the xml data thats mixed up.
I have a problem with an eCom left menu where all the groups are present and the language and links get mixed up.
http://developer.dynamicweb-cms.com/forum/ecommerce---standard-features.aspx
As you can see it's the xml data thats mixed up.
Antonio Amézquita Ganoza
Posted on 09/05/2012 12:27:15
Hi Nicolai or Somebody
I am trying to make an ecom left navigation without luck, I tried all the templates and the setups in this thread
but no categories from ecom appear, did you get it working, if so, could please share how?
I am trying to make an ecom left navigation without luck, I tried all the templates and the setups in this thread
but no categories from ecom appear, did you get it working, if so, could please share how?
Nicolai Høeg Pedersen
Posted on 19/04/2013 14:59:14
An example XSLT for using parent tag with eCommerce navigation along side with the abillity to pass your own settings on the settings attribute:
<xsl:template match="/NavigationTree"> <xsl:variable name="productNav" select="//Settings/LayoutNavigationSettings/@product-nav" /> <xsl:if test="count(//Page[@NavigationTag=$productNav]/Page) > 0"> <ul> <xsl:apply-templates select="Page[@NavigationTag=$productNav]/Page"> <xsl:with-param name="depth" select="1"/> </xsl:apply-templates> </ul> </xsl:if>
Anders Ebdrup
Posted on 25/04/2013 15:59:19
Hi,
When selecting "Groups" instead of "Shop" in the navigation settings for the menu item then groups for all languages are rendered :-)
Best regards, Anders
Martin Skov Nielsen
Posted on 22/04/2014 12:10:54
Can the breadcrumb/legend be placed in f.x. /Ecom/ProductList or must it be placed in /Design/<name>/<name>.htm?
I think the answer is no - otherwise I'm doing something wrong...
You must be logged in to post in the forum