Is there anyone who can tell me how to make an home page with a four column template, left column, right column and two central columns with teaser content.
Normal drupal sites has only one central column. I got frontpage and views modules (4.7) and built up a table with two column in the center (in main content div). How can I tell the theme to put some recent story in the first column and others in the second one?
Is there any other theme developed like that?
I also need to put in some images in the teasers. Any idea?
I'm trying to design a theme that uses small banner-like images in place of the usual text titles for (some) blocks that appear in my right sidebar. The catch is I do want some of the titles to be text and I only want these banners to appear only in the right sidebar. How would I go about doing this? I've just been using the default block.tpl.php and I haven't seen anyone attempt something like this with Drupal before.
Ok Well I think this is where I should post this. I'm kinda a noob to Drupal and php!
I have this code that works great to show my flexinode-1
[code]
//node type in question
$node_type = "flexinode-1";
//number of columns
$objects_per_row = 3;
//number of results per page
$objects_per_page = 4;
//optional table width setting
//$flexwidth = '100%';
print '<TABLE width="' . $flexwidth . '" cellpadding=0 cellspacing=0><TR>';
$result = pager_query("SELECT n.nid, n.created, n.title FROM {node} n WHERE n.type = '$node_type' ORDER BY created", $objects_per_page);
$i = 0;
while ($node = db_fetch_object($result)) {
print '<TD valign=top>';
print node_view(node_load(array('nid' => $node->nid)), 1);
print '</TD>';
$i++;
if ($i == $objects_per_row)
{
print '</TR><TR>';
$i = 0;
}
}
print '</TD></TR></TABLE>';
//summons the pager at the bottom
print '<TABLE width="' . $flexwidth . '" colspan="' . $objects_per_row . '">
<TR><TD>'. theme('pager') .'</TD></TR>
</TABLE>';
[/code]
What I would like it to do is instead of displaying a flexinode, I could use it to display a all my items of a particular term.
I have a category of cars with two terms For sale and Sold. I want to be able to add a new car for sale annd then once it is sold just edit it and change it to sold. I will then display the for sale and sold cars on two different pages.