[英]Hide page title from all pages, refinerycms
I am using refinerycms 2.1.0
. 我正在使用
refinerycms 2.1.0
。 How can i remove page "Company name"
title from all pages, 如何从所有页面中删除页面
"Company name"
标题,
I overrided home page then passed :hide_sections => :body_content_title to render 我覆盖了主页,然后通过:hide_sections =>:body_content_title进行渲染
'/refinery/content_page'. '/精炼厂/ content_page'。 But it is not working.
但这是行不通的。
From guides, one of the chief maintainers of Refinery CMS, says: 在指南中,炼油厂CMS的主要维护者之一说:
Add a content_for :body_content_title block in the template you're including from.
在您要包含的模板中添加content_for:body_content_title块。 Just make it blank and tell the _content_page partial to hide empty sections by passing it :locals => {:hide_sections => [:body_content_title]}.
只需将其保留为空白,并通过传递:locals => {:hide_sections => [:body_content_title]}来告诉_content_page部分隐藏空白部分。
I think you might be trying to remove the site name from the header. 我认为您可能正在尝试从标题中删除站点名称。 Give this a try...
试试这个...
$ rake refinery:override view=refinery/_header.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.