This forum is for assistance with theme development.

3 columns on front page... :/

Hi :)

I know this has been asked before in other threads but none have really gotten a good answer.

What I want to do is fairly simple and i'm wondering what's the best way to do it:

I want 3 columns on the front page (index page) og my drupal site. Each column should display story's from one spesific taxonomy vocabulary type.

Any modules that can help me with this? Probably not, but how would I attack this themeing problem?

Any ideas are welcome.

Smarty template engine, rendering of views and flexinodes using associative arrays/objects

Ok heres what ive managed to achieve, it may be useful to you


  • Define a view that filters nodes based on taxonomy terms

  • Have that view render the related nodes via Smarty template engine

  • have the flexinode's also available to smarty but use proper naming instead of field ID's

I created a flexinode called "Human or Person" and a view called "About our team" which is a view containg a list of nodes that are related by taxonomy.

The flexinode template is called flexinode-HumanOrPerson.tpl
The view template is called view-AboutOurTeam.tpl

In my bluemarine_smarty theme folder i create a "smartytemplate.php" and added the following

<?php
// all views go via here..
function smarty_views_view($view, $type, $nodes) {
$i=0;
foreach($nodes as $node) {
$result = db_query("select flexinode_data.*, flexinode_field.* from flexinode_data
left join flexinode_field on flexinode_data.field_id= flexinode_field.field_id where nid=%d",$node->nid);
if(db_num_rows($result)) {
while( $dbobj = db_fetch_object($result) )
$viewobject[$i]["flexinode"][preg_replace("/[^\w\d]/","",ucwords($dbobj->label))]=$dbobj; // Ask for it by array offset
$i++;
}
}

// view filenames are view-AboutOurTeam.tpl etc in current theme path
$viewfilename="view-".preg_replace("/[^\w\d]/","",ucwords($view->name)).".tpl";

increase size of Slogan

Hello,

I'm using phptemplate engine and modifying a bit with box_grey theme.

Still a beginner in Drupal.. How can I increase the size of the slogan (I need to put a paragraph under website title).. or maybe how to make the mission to show .. and if it can show under the site title..

thanks

Theme taxonomy_term_page

Hi,

I need to show a completelly diferent taxonomy page for specific terms.
Any idea how can I override the default function, vy theming it or other way?

Regards,
Fernando Silva

second css file

hi,

Is it possible to use 2 css files? cause i have a page-front.tpl and a page.tpl. the page front needs the style.css file but the page.tpl needs another css file.

I have put in the code of page.tpl this line:

but it doesn't choose that css.

How to solve this?

diagram of 4.7 regions layout?

hi is there a picture of the 4.7 regions layout available? I'm trying to show a designer where stuff should go in the design, but they dont have access to the server, so the page.tpl.php variables are not showing up for them ( dreamweaver) .

Pages

Subscribe with RSS Subscribe to RSS - Theme development