Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3307526
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T21:24:59+00:00 2026-05-17T21:24:59+00:00

this is a question how to override themable items in Drupal 6. According to

  • 0

this is a question how to override themable items in Drupal 6.

According to the book “Pro Drupal Development”, we can override themable items in two ways:

  1. overriding via Theme functions
  2. overriding via Template files

So for example, in order to reformat the breadcrumb, I can:

  1. via function theme_breadcrumb($breadcrumb)
  2. via breadcrumb.tpl.php

But on my local testing server, the second approach (i.e. via template file) is not working! I see no breadcrumbs at all, while the first approach works fine.

Any idea how could this happen? any special settings I need to configure my Drupal?

thanks!

My custom theme “greyscale”:
sites\all\themes\custom\greyscale:
– breadcrumb.tpl.php
– greyscale.info
– node.tpl.php
– page.tpl.php
– style.css
– template.php

relevant file contents:
* template.php:

function phptemplate_preprocess_breadcrumb(&$variables) {
  $variables['breadcrumb_delimiter'] = '#';
}
  • breadcrumb.tpl.php:

alt text

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T21:25:00+00:00Added an answer on May 17, 2026 at 9:25 pm

    Theme functions are setup to either use a template or a function to generate the markup, it will never use both as that’s pointless.

    For a theme function to use a template, it must be defined when you define it in hook_theme.

    A template + preprocess function and a theme function really does the same thing: produce markup. It depends on the situation which method is best to use, that’s why we have two. The good thing about templates, is that it allows themers to change the markup, without know much about PHP or Drupal.

    Cache

    Drupal caches all templates and theme functions defined in your theme, when you create new ones, you need to clear the cache, this can be done by:

    • Use drush
    • Clearing cache in admin/settings/performance
    • Use devel to clear it on each page load. Usable during development, biut will kill performance.

    Switching theme back and forth will work too, but it really not the desired way to do it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know this question was asked previously and the reply was to override onPrepareContextMenu()/onCreateContextMenu().
This question gives the answer that Java's @Override has the C# equivalent of the
I read this question here: Is there a way to override the empty constructor
This question is expanding on another I had gotten help with via Stackoverflow (
I am trying to override an active resource method like explained in this question
This question concerns memory in Android. My method: I have two activites, A and
In this question a user replied that he was able to override the security
I have this question. public class Foo : object { public override bool Equals(obj
(creating a separate question after comments on this: Javascript redeclared global variable overrides old
This question is directly related to this SO question I posed about 15 minutes

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.