This forum is for assistance with theme development.

phpTemplate problem

I downloaded phpTemplate for 4.6x and followed the directions. I think the problem might be that not all the files were there, but I don't know. I got these:

LICENSE
README
phptemplate.engine
and these tpl.php files: block, node, box, comment, default
and template.php

I put them in the themes/engines folder like it said and can't figure out how to access it now. It doesn't come up in any menus. It says it comes with a default theme but those are the only files I got.

Friends Electric theme is broken on IE7?

hi all, I'm using a slightly modified Friends Electric therme on Drupal 4.65. When I view the site on Internet Explorer 7 beta, the middle column is displaced downward, with its top at the bottom of the left column. I suspect there's an easy fix for this (maybe involving 'float' and 'clear'), so can anyone help me out? thanks.

BTW, the site is viewable at http://bikecalgary.org/ and in the top story I include screen captures from both browsers.

thanks
S

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

Pages

Subscribe with RSS Subscribe to RSS - Theme development