Homeland 全局设置隐藏首页部分节点的功能完全没有生效

laofo · 2017年03月02日 · 最后由 huacnlee 回复于 2017年03月07日 · 1234 次阅读

请问这个可能和哪里配置错误有关?

地址发来看看

这个配置是写到 config/config.yml 里么?前台可以正常保存,但是后台 config/config.yml 里 node_ids_hide_in_topics_index: "" 还是空。我尝试直接修改 config/config.yml 把节点名字写到 node_ids_hide_in_topics_index 里,发现还不行。

Started PATCH "/admin/site_configs/node_ids_hide_in_topics_index" for 127.0.0.1 at 2017-03-07 10:11:14 +0800
Processing by Admin::SiteConfigsController#update as HTML
  Parameters: {"utf8"=>"✓", "authenticity_token"=>"[FILTERED]", "setting"=>{"value"=>"Perl,产品/构建, 软件 开发"}, "commit"=>"保存", "id"=>"node_ids_hide_in_topics_index"}
   (0.4ms)  SELECT COUNT(*) FROM "new_notifications" WHERE "new_notifications"."user_id" = 4 AND "new_notifications"."read_at" IS NULL
  Setting Load (0.4ms)  SELECT  "settings".* FROM "settings" WHERE (thing_type is NULL and thing_id is NULL) AND "settings"."var" = $1 LIMIT $2  [["var", "node_ids_hide_in_topics_index"], ["LIMIT", 1]]
Redirected to http://abc.com:3000/admin/site_configs
Completed 302 Found in 13ms (ActiveRecord: 0.8ms)

前台点保存,后台日志信息是这个

需要 登录 后方可回复, 如果你还没有账号请 注册新账号