English 中文(简体)
传统区域在Droupal Sub主题中没有显示
原标题:Custom region does not show up in a Drupal Sub theme

我正试图为我的第七博士子主题建立一个习俗区。 我所遵循的程序是:

1) Specify sub region in .info file of subtheme like this: regions[ sub_region ] = Sub region 2) In the page.tpl.php file, print render($page[ sub_region ]); at the location where I wish the sub region would appear.

3) 清除海滩

然而,这一新的次区域没有出现在我的区块中。

任何人都问到我究竟做什么错了? 或者需要做更多的工作

增 编

问题回答

你在In.info为该地区宣布的辛迪克斯是不正确的。 不应仅举一个区域名称。

regions[sub_region] = Sub region

rel=“nofollow”>Documentation for .info file





相关问题
Are Drupal theme settings cached?

i want to change theme_username, a core theme function that outputs that dreadful "not verified" string on users who are not logged in (when they comment, for example). i want a checkbox in admin/...

Count rows in Drupal views plugin

I ve written myself a Drupal Views row plugin and I want to count the rows so I can do something with the output every Nth row. I can do this in the plugin s preprocessor function but if it gets ...

How do you separate the template of a blog block in Drupal?

In Drupal, I created a block using views. This block contains the latest blog entries. I ve placed this on a specific page to display it as an archive. Now, as for the blog itself (for example when ...

How to theme a view in drupal

Can any one help me out on how to theme a view. For each view created i want to have different templates.

热门标签