Drupal - Custom Breadcrumb style
by admin on Aug.16, 2009, under Linux Blerg
Drupal by default is capable to display breadcrumb path, Then its up to the theme to specifies how to and where to display the breadcrumb path output.
If you wish to use background image in the breadcrumb, you will need to modify the breadcrumb css class.
You can modify the breadcrumb css class by specifying the following code inside your theme template.php
function phptemplate_breadcrumb($breadcrumb) {
if (!empty($breadcrumb)) {
$lastitem = sizeof($breadcrumb);
$crumbs = '<div class="breadcrumbs"><div class="breadcrumb-home"></div>';
$a=1;
foreach($breadcrumb as $value) {
if ($a!=$lastitem){
$crumbs .= '<div class="breadcrumb-item"><p>'.$value.'</p></div>';
$a++;
}
else {
$crumbs .= '<div class="breadcrumb-current"><p>'.$value.'</p></div><div class="breadcrumb-end"></div>';
}
}
$crumbs .= '</div>';
}
return $crumbs;
}
Then you will need to create a suitable background image and off course a corresponding css file to match the div classes as the code above.
-= end transmission =-


















December 25th, 2009 on 6:27 pm
I want to quote your post in my blog. It can?
And you et an account on Twitter?
December 30th, 2009 on 7:05 am
I’ve had this netbook for 4 weeks now. I read, reasearched, and thought over my options for months and finally settled on the Samsung NC10. The oft criticized track pad is just fine after speeding up the setting a notch. And the speakers have a weird default setting on them, but after changing the settings the speakers are fine too. Loading software is a bit of a hastle with a jump drive, but not bad and I’ve seen no reason to buy a portable CD/DVD drive just yet. It just takes a little longer and you’ll need a second computer to transfer the SW onto the jump drive from the CD. Though it’s nice and light, the weight is oddly distributed as the battery weighs the most and kind of “rocks” the computer towards the back when it’s on your lap…not a big deal. Actually, I’m just surprised that I didn’t read that more in the 100’s of reviews I read.
On to the GREAT THINGS…. The battery life is unbelievable! I have to admit, I suspected the touted 6-8 hours as totally exagerated. It is not!! It’s a pretty snappy little computer… faster than my Sony VAIO desktop for sure. And I haven’t even upgraded the RAM yet. (Tip: get rid of MacAfee immediately! It really slows the netbook down.) I love the portability. I also like that it looks professional, not like a toy as some of the netbooks do. I honestly wish I’d just bought it sooner without all the second guessing and comparing I was doing. This is abslutely the best netbook out there. I’d pick it again!
January 21st, 2010 on 4:38 pm
Good post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts. Any way I’ll be subscribing to your feed and I hope you post again soon.
January 30th, 2010 on 9:41 am
yes no problem
January 30th, 2010 on 9:42 am
what do you mean?