简体   繁体   English

重新设计xt Commerce菜单

[英]Redesign xt Commerce Menu

I`m about to configure an xt Commerce 4 template for a friend. 我要为朋友配置xt Commerce 4模板。

It´s the shop under: shop.lucas-recknagel.de 这是下一家商店: shop.lucas-recknagel.de

My problem is that I´ve designed a site structure where the main category items are placed in a topmenu over the whole page content, and when I select such a main category that the the level2 menu items appearing in the left sidebar. 我的问题是,我设计了一个站点结构,其中主要类别项位于整个页面内容的顶部菜单中,并且当我选择这样一个主要类别时,level2菜单项出现在左侧栏中。

Here an example: 这里是一个例子:

<ul>
 <li class="level1">MAIN-ITEM1</li>
 <li class="level2">UNDER_01 MAIN ITEM1</li>
 <li class="level2">UNDER_02 MAIN ITEM1</li>
 <li class="level2">UNDER_03 MAIN ITEM1</li>
 <li class="level1">MAIN-ITEM2</li>
 <li class="level1">MAIN-ITEM3</li>
 <li class="level1">MAIN-ITEM4</li>
</ul>

So items with class level1 has to be in the top menu and level2, level3 ... has to be in the side menu. 因此,级别为1的项目必须位于顶部菜单中,级别2,级别3 ...必须位于侧面菜单中。

I`m familiar with php, html and css but I can´t find the php or html object where the menu structure is generated. 我熟悉php,html和css,但是找不到生成菜单结构的php或html对象。

I´ve already searched these files: 我已经搜索了以下文件:

WEBSERVER/templates/mytemplate/xtCore/box_categories.html
WEBSERVER/xtCore/boxes/categories.php  
WEBSERVER/xtCore/pages/categories.php  
WEBSERVER/xtFramework/classes/class.category.php

But nowhere I can find these structure which is generating the menu. 但是在任何地方我都找不到这些生成菜单的结构。

First I thougt box_categories.html create the structure but even when I delete these file and clean all webserver chaches the menu is still working. 首先,我创建了box_categories.html结构,但是即使删除了这些文件并清理了所有Web服务器程序,菜单仍然可以正常工作。 I tried also to use a if statement to filter the output of the menu depth but menu working as usual. 我也尝试使用if语句来过滤菜单深度的输出,但是菜单照常工作。 So I think it is created in another file. 所以我认为它是在另一个文件中创建的。

So I hopy anyone of you have an answer for me so solve these problem. 因此,我希望你们中的任何人都能为我提供答案,从而解决这些问题。

Yours Lucas 你的卢卡斯

I have not tried it, but I think that xt:commerce falls back to the default template if the file box_categories.html is not found. 我没有尝试过,但是我认为如果找不到box_categories.html文件,则xt:commerce会退回到默认模板。 But box_categories.html is the file that create the structure. 但是box_categories.html是创建结构的文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM