【发布时间】:2012-05-09 13:33:14
【问题描述】:
我使用的是 symfony 1.0.6,站点结构如下;
应用程序/前端/模块/自定义页面
我想为 custompages 模块的页面设置“noindex 和 nofollow”元数据。
我尝试如下给予:
metas:
robots: noindex,nofollow
但它不起作用。
请帮忙...!
【问题讨论】:
-
假设您清除了缓存?此外,请确保模块中没有 view.yml 会覆盖应用配置中的默认 view.yml。
-
模块中有一个view.yml。我的模块名称是“custompages”,我在 custompages/config/view.yml 中添加了元数据。不对吗?
标签: symfony1 metadata robot nofollow noindex