【问题标题】:Hide page title from all pages, refinerycms从所有页面隐藏页面标题,refinerycms
【发布时间】:2013-10-07 16:11:13
【问题描述】:

我正在使用refinerycms 2.1.0。如何从所有页面中删除页面 "Company name" 标题,
我覆盖了主页,然后通过 :hide_sections => :body_content_title 来渲染
'/refinery/content_page'。但它不起作用。

Refinery CMS 的主要维护者之一指南说:

在您的模板中添加 content_for :body_content_title 块 包括从。只需将其设为空白并告诉 _content_page 部分 通过传递它来隐藏空白部分:locals => {:hide_sections => [:body_content_title]}。

【问题讨论】:

    标签: ruby-on-rails refinerycms refinery


    【解决方案1】:

    我认为您可能正在尝试从标题中删除站点名称。试试这个...

    $ rake refinery:override view=refinery/_header.html
    

    【讨论】:

      猜你喜欢
      • 2016-04-26
      • 2016-08-10
      • 1970-01-01
      • 2018-09-08
      • 1970-01-01
      • 2014-06-30
      • 1970-01-01
      • 2013-04-17
      • 1970-01-01
      相关资源
      最近更新 更多