我正在建立一个基于阔叶树模板的电子商务网站。我想从网站的右侧删除特色栏目?
发布于 2014-09-27 13:15:48
如果您正在使用位于:https://github.com/BroadleafCommerce/DemoSite的演示站点,您确实可以删除以下部分:
/site/src/main/webapp/WEB-INF/templates/catalog/product.html
来自<section id="right_column">
<header>Featured Products</header> <div id="options"> <div class="section"> <blc:related_products productId="${product.id}"/> <ul id="featured_products" class="group"> <li th:each="relatedProduct : ${relatedProducts}" th:object="${relatedProduct.relatedProduct}" th:include="catalog/partials/productListItem" class="product_container"></li> </ul> </div> </div>
但是,可能通过在源代码中搜索blc:related_products就可以完全删除功能产品,并且您会发现它包含在4个文件中:site/src/main/webapp/WEB-INF/templates/content/default.html、site/src/main/webapp/WEB-INF/templates/catalog/product.html、site/src/main/webapp/WEB-INF/templates/catalog/category.html、site/src/main/webapp/WEB-INF/templates/catalog/search.html
但是请记住,这个处理器只删除了查找不同上下文中的特色产品的要求,比如链接到某个类别或某个产品的功能产品,等等。
发布于 2014-09-25 07:23:23
我在<section id="right_column">中找到了一个product.html.If标记,我删除了这个标记,从site.Any中删除了右窗格,还有其他更好的解决方案吗??
发布于 2014-09-25 06:50:28
https://stackoverflow.com/questions/26032215
复制相似问题