gpt4 book ai didi

templates - Bigcommerce:%%SNIPPET_SideCategoryList%% - 底层模板文件在哪里?

转载 作者:行者123 更新时间:2023-12-03 06:48:30 25 4
gpt4 key购买 nike

在文件 template/Panels/SideCategoryList.html 中,有行 %%SNIPPET_SideCategoryList%% .

当我修改文件时,我认为这一行引用的是 (template/Snippets/SideCategoryList.html),我发现结果输出没有任何变化。

知道底层模板文件在哪里吗?

更新:根据this post它可能是无法编辑的“隐藏片段”。谁能证实这一点吗?如果是这样,template/Snippets/SideCategoryList.html 的目的是什么?

template/Panels/SideCategoryList.html
<div class="CategoryList" id="SideCategoryList">
<h3>Categories</h3>
<div class="BlockContent">
<div class="%%GLOBAL_SideCategoryListTypeClass%%">
%%SNIPPET_SideCategoryList%%
</div>
</div>
</div>

template/Snippets/SideCategoryList.html
<li class="%%GLOBAL_LastChildClass%%">
<a href="%%GLOBAL_CategoryLink%%"> %%GLOBAL_CategoryName%%</a>
%%GLOBAL_SubCategoryList%%
</li>

正如您从上面的模板代码中看到的,在面板和代码段之间 SideCategoryList.html 没有 <ul> 。对 template/Snippets/SideCategoryList.html 进行更改没有任何区别。这似乎指向%%SNIPPET_SideCategoryList%%从其他地方拉入代码。

最佳答案

从 ul 上出现的 superfish 类来看,听起来您正在使用“弹出菜单”作为“类别菜单样式”(此选项可以在“设置和工具”>“商店设置”>“显示”中找到)。

使用弹出菜单时,引用的代码段不是“Snippets/SideCategoryList.html”。相反,请尝试使用“Snippets/FlyoutTree.html”和“Snippets/FlyoutNode.html”模板。

关于templates - Bigcommerce:%%SNIPPET_SideCategoryList%% - 底层模板文件在哪里?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22952205/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com