开发者

Drupal: placing 2 views in a 2 column page

Is there any way to place 2 views in a 2 columns page in开发者_如何转开发 Drupal without having to install the Panels module ?

N.B. The 2 columns layout should be used only for this page.

thanks


Without Panels or Context[http://drupal.org/project/context] modules, you got two options.

  1. You can make the views into blocks.
  2. You can load and render the views manually in a custom module.


You can insert views via PHP in the node of the page, and then use custom HTML/CSS to make the views occupy a column each. Check this article and discussion, for example, where the code to insert the view is the following:

<?php $view = views_get_view('viewname'); print $view->execute_display('default', $args); ?>

This will, of course, require full permissions for the node editing, but if this is just for one page, I assume you have all the needed permissions to do it once.


In Views 3 you can use "Global: View area" (Insert a view inside an area.) in header or footer of your current view

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜