如何评估 Magento-project 的 <head> 中的问题
How to evaluate problems in the <head> of a Magento-project
我在 Magento 1.7.0.2 中设置 setRobots() 时遇到问题,因为我确实通过 XML-Update 和 local.xml 在后端设置了它们,尽管我的 cms-pages 没有得到正确的 robots-tags。 (同样的顺便说一句也适用于 head-section 中的描述或其他标签)
我确实知道如何通过激活 magentos 后端中的 show-blocks 来调试前端的可见部分。但是对于 head-section 来说,实践并没有指导我任何地方。通常建议从什么出发点来评估该部分的问题?
谢谢
像往常一样,可能是缓存问题。配置数据也存储在缓存和块渲染中。
然后您可以在 app/design/frontend/{package}/{theme}/template/page/html/head.phtml
and/or 链接的块 app/code/core/Mage/Page/Block/Html/Head.php
处编辑模板
检查Mage_Page_Block_Html_Head::getRobots()
方法
我在 Magento 1.7.0.2 中设置 setRobots() 时遇到问题,因为我确实通过 XML-Update 和 local.xml 在后端设置了它们,尽管我的 cms-pages 没有得到正确的 robots-tags。 (同样的顺便说一句也适用于 head-section 中的描述或其他标签)
我确实知道如何通过激活 magentos 后端中的 show-blocks 来调试前端的可见部分。但是对于 head-section 来说,实践并没有指导我任何地方。通常建议从什么出发点来评估该部分的问题?
谢谢
像往常一样,可能是缓存问题。配置数据也存储在缓存和块渲染中。
然后您可以在 app/design/frontend/{package}/{theme}/template/page/html/head.phtml
and/or 链接的块 app/code/core/Mage/Page/Block/Html/Head.php
检查Mage_Page_Block_Html_Head::getRobots()
方法