Developer forum

Forum » Templates » ecom menu

Reply
Hi,

Im trying to include an ecom menu on a level1 page, but am really struggelin at getting it right.

1) When trying to use Showxml=true, im NOT getting the menuitem including the ecom menu, nomatter what the position
2) Although I in the layout file has written "lastlevel:1" in the menu tag, its still rendering the entire ecom structure
3) As of 2, when stating a "firstlevel" it dosent care.
4) path, all in menu tag - whatever the ecom menu laughs at this...need to set this in the xslt

Am I missing something here, or is it nescesary to do another template just for my ecompages in order to get this right?

In my case thatll mean 2 different templates x 4 languages (since translate does does not work on "master"/"page" level yet, instead of just one.

/Regin Madsen

Replies

 
Reply
 It's startlevel and endlevel, not firstlevel and lastlevel :)
 
Reply
Yes I have written it wrongly here.

To be a bit more precise:

I have a top menu, that should only display level1 and a sidemenu displaying the rest.

the HTML (Simplified) is as this:

TO DW: Could you please make a possibilty to include codeexamples in the posts. Iwe tried a number of ways now, but its getting filtered everytime :-( so this is what I could post

div id="topmenu"
      ul title="Topmenu" class="dwnavigation" id="TopNavigation" settings="startlevel:1;endlevel:1;template:LIClean.xslt;expandmode:path;"> /ul>
    /div>

div id="leftmenu">
                ul title="leftmenu" class="dwnavigation " id="LeftNavigationEcom" settings="startlevel:2;template:LIClean.xslt;expandmode:Path;">
                /ul>
            /div>


So what happens:
1) the topmenu is displaying all levels of the ecom groups, but only level1 on the normal pages.
2) Level2 show nothing.

Am I the only one facing this problem? And how have you solved it (without the obvious way of using multiple layoutfiles and xslts)

/Regin

 
 
Nicolai Høeg Pedersen
Reply
Hi Regin

Take a look at this thread and use the attached xslt's:
http://engage.dynamicweb-cms.com/Forum-5.aspx?action=ShowThread&ThreadID=2141

Just tested translation of layout files - and translate works with designs and layout. Simply add translations tags to the layout template:


Then in the filemanager edit the layout template (make sure to use the extended file editor), and choose translate - button in the ribbon. This will open the translation interface which will create a translation file in /Templates/Designs. Attached an example that can also be edited by hand.

Also take a look at the "Working with template terminologies" found here: http://engage.dynamicweb-cms.com/Working%20with-183.aspx

 
Reply
Hi,

Thanks for the link (actually I think You have send me those before). However, I still think it could be a bit smarter if the "ecom" could work and function as regular pages, in such way you did not have to make the xslt overrule the layout template. But of cause its just a matter of habbits.

Regarding the translation - Its classified as a bug. I have tried it again, and it still doesnt work. If you need to see the solution you can mail me.

/Regin
 
Nicolai Høeg Pedersen
Reply
Hi Regin

I've mailed you to take a look at the translate issue.

Regarding ecom menu - yes there is room for improvement. Will look into it.

Thanks.
 
Reply
For any of interest.

We found out there were a bug in the translation system. This is about to be fixed.

And for the ecom menu - the xslt and links provided by Nicolaj above works like a charm.

over and out
/Regin

 

You must be logged in to post in the forum