【发布时间】:2020-07-30 22:59:08
【问题描述】:
在页面生成器中,我添加了一个名为“关于我们”的页面,其 url 为“/about-us/”
我一直按照此处的说明进行操作
https://developer.bigcommerce.com/stencil-docs/storefront-customization/custom-templates
以便为该页面制作自定义模板。
我在 templates/pages/custom/page 中创建了一个名为 about-us.html 的文件,内容如下:
<h1>About Us Page Test</h1>
我的 .stencil 文件如下所示
{
"normalStoreUrl": "my url",
"accessToken": "my access token",
"port": "3003",
"customLayouts": {
"brand": {},
"category": {},
"page": {
"about-us.html": "/about-us/"
},
"product": {}
}
}
我已经停止并重新运行“模板启动”,但每次我访问 localhost:3003/about-us/ 时它只显示正常页面而不是我构建的自定义模板。
我有什么遗漏吗?这是将页面构建器与模板结合使用的问题吗?
【问题讨论】:
标签: bigcommerce