I need to have "section pages" which are essentially direct links off of the front page. In these section pages I need to have a static "top" part that includes pictures and some text, followed by a "bottom" part which is mostly dynamic content (views blocks). The static content will get updated on a weekly basis. What is the proper way to do this?

Thanks in advance
John

Comments

Bricks and Clicks Marketing’s picture

You could just make a Page. The content would be static and the sidebars (or other block areas) will still be there.

Arp Laszlo
www.inkwire.net

Arp Laszlo
bricksandclicks.marketing
design / theming / development / consulting

jadams1-1’s picture

Ok so I just alias the Page to the "section" URL and modify the Page whenever static updates are necessary?
Would it be better/possible to insert a static 'block' on top of a views page? That way if the 'sections' grow I can make a single view and add static blocks to the top of it rather than make many different nodes.

Thanks for your response, it's a big help as I continue to learn Drupal.

John

trailerparkopera’s picture

include views and blocks inside a node will be helpful to you. Alternatively, you can code your page in php to include your static content from a node (e.g. /mainstory), then also include views and blocks below that.

I have found it easier to use php to do this rather than the modules which include views and blocks using filters, but depending on your layout needs, either method will work.

There are a couple examples inside the php snippets that show you how to include a block (including blocks created by views) inside a static page. These have been most helpful to me.

Here's an example I use for my search and rescue association. It displays 5 blocks, pulling from different parts of the site plus a newsfeed. It is then themed with css:

<table><tr><td width=60% valign=top>
<div style="position: relative; float:right; width:40%;margin-right: 12px;margin-top:20px;"><a href="http://www.my.org/node/276"><img src="http://www.my.org/files/images/070217mtbaldy_0.preview.jpg"></a></div>
<h3>Highlights</h3>
<?php
$block = module_invoke('views', 'block', 'view', highlights);
print $block['content'];
?></td>
<td width=40% valign=top bgcolor='#FFFFCC'>
<h3>SAR Calendar</h3><?php
$block = module_invoke('event', 'block', 'view', 1);
print $block['content'];
?></td><tr></table>

<div class="pageonerule"> <br /></div>

<div class="pageone1">
<h3>Recent minutes</h3>
<?php
$block = module_invoke('views', 'block', 'view', minutes);
print $block['content'];
?>
</div>

<div class="pageone2">
<h3>Active forums</h3>
<?php
$block = module_invoke('forum', 'block', 'view', 0);
print $block['content'];
?></div>

<div class="pageone3">
<h3>Search & Rescue News</h3>
<?php
$block = module_invoke('aggregator', 'block', 'view', 'category-1');
print $block['content'];
?>
</div>

Hope this helps!

jadams1-1’s picture

Thank you! I think this gives me a good way forward for now.