Prestashop - 标题链接
我安装了 Prestashop,并尝试向其中添加页面。我希望页面显示“主页”和“联系方式”链接,而不是显示在信息块中。我认为我需要编辑代码,但是在哪里?我是否对页面进行硬编码?或者我可以使用工具中的 CMS 创建页面,然后在该页面的标题链接中添加一个链接吗?
I have a Prestashop installation and am trying to add pages to it. I want the pages to show up with the HOME and CONTACT links and not in the information block. I take it I need to edit code, but where? Do I hard code the pages? Or can I create the page with the CMS in tools and just add a link in the headerlinks for that page?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
啊,我找到了。对于任何可能也在寻找此内容的人,您可以直接编辑此内容,如下所示:
找到“modules/blockpermanantlinks/”目录并编辑 blockpermanentlinks-header.tpl 文件。您还需要手动设置目标页面。我只是指向我之前制作的信息 CMS 页面。
AH, I found it. For any who may also be looking for this, you can edit this directly like this:
Find the 'modules/blockpermanantlinks/ directory and edit the blockpermanentlinks-header.tpl file. You will need to set up target pages manually too. I just pointed to information CMS pages I made earlier.
@Stefan,在 PS 1.4 中,您需要让 Smarty 强制编译才能看到您在测试或更改页面元素/外观时所做的更改。
转到
首选项>性能
,并在测试更改时更改为“强制编译:是,带缓存:否”。完成后,将这两个设置更改回“强制编译:否”和“缓存:是”。@Stefan, in PS 1.4, you need to let Smarty Force a Compile in order to see changes you make while testing or changing the elements/appearance of a page.
Go to
Preferences > Performance
, and change to Force Compile: Yes, w/ Cache: No, while you are testing changes. When you are done, change those two settings back to Force Compile: No and Cache: Yes.