drupal6

Theming breadcrumbs

Theming breadcrumbs in drupal is extremely easy, simply using the theme_breadcrumb hook

1
2
3
4
5
6
7
8
9
10
function mytheme_breadcrumb($breadcrumb) {
  if (!empty($breadcrumb)) {
    $lastitem = sizeof($breadcrumb);
    $crumbs = '<div id="breadcrumbholder"><b>Location : </b>';
    
    
    $a=1;
    foreach($breadcrumb as $value) {
        if ($a!=$lastitem){
         $crumbs .= '<p>'.$value.'martin</p>

Theming imagecache content

The more you get into drupal the more you find that it isnt as module as you would hope. I just spent the afternoon trying to find a solution to all my image uploads appearing at the bottom of my posts (Im using image cache with CCK imagefield). For templating this isnt where I would like my images to appear. The main issue is that the relevant string is enbriled in the $content variable.

The solution to get around the problem initially I thought it was the $vars['field_imagename_rendered'] = ''; the %vars vairable coming from the $node.