Breadcrumbs and TMA Customization

Asked by Donnita

I noticed that ER asked about this back on the 11th of this month but there was no answer (it is was asked within another question about the TMA Customization Theme.

Anyway, is there a way for breadcrumbs to be turned off in this theme? They appear on all pages except the Front Page, right through the panoramic headers.

Thanks much,
Donnita

Question information

Language:
English Edit question
Status:
Solved
For:
ProsePoint Edit question
Assignee:
No assignee Edit question
Solved by:
bengtan
Solved:
Last query:
Last reply:
Revision history for this message
bengtan (bengtan) said :
#1

You can disable the breadcrumb in the theme tma2. I don't think this feature was carried over into tma_custom though.

To disable the breadcrumb for tma2, visit .../admin/build/themes/settings/tma2 and set 'Display breadcrumb' (at the bottom) to 'No'.

Revision history for this message
Donnita (donnita) said :
#2

Well, it was the customization Theme that I was trying to work with and
wanted to be to use it but needed to turn off breadcrumbs as it was
appearing across the panoramas.

Have went back to working with your TMA 2. As I have little to no knowledge
of CSS or PHP, I am trying to put something together (newspaper) that will
work for me till I can get someone to alter the themes for me.

In using TMA2, the following item is showing up in the error log under Page
Not Found:

profiles/prosepoint/themes/tma/tma/foo.gif

Was this gif included in the theme, or perhaps it just didn't extract
properly? It most certainly isn't where it says that it should be.

As just as something to be noted, while I was pp_newswire, the following
page not found error kept appearing:

sites/all/themes/pp_newswire/ie.css

Take care, and thanks,
Donnita

----- Original Message -----
From: "bengtan" <email address hidden>
To: <email address hidden>
Sent: Wednesday, December 17, 2008 1:42 AM
Subject: Re: [Question #54711]: Breadcrumbs and TMA Customization

Your question #54711 on ProsePoint changed:
https://answers.launchpad.net/prosepoint/+question/54711

    Status: Open => Answered

bengtan proposed the following answer:
You can disable the breadcrumb in the theme tma2. I don't think this
feature was carried over into tma_custom though.

To disable the breadcrumb for tma2, visit
.../admin/build/themes/settings/tma2 and set 'Display breadcrumb' (at
the bottom) to 'No'.

--
If this answers your question, please go to the following page to let us
know that it is solved:
https://answers.launchpad.net/prosepoint/+question/54711/+confirm?answer_id=0

If you still need help, you can reply to this email or go to the
following page to enter your feedback:
https://answers.launchpad.net/prosepoint/+question/54711

You received this question notification because you are a direct
subscriber of the question.

--------------------------------------------------------------------------------

No virus found in this incoming message.
Checked by AVG - http://www.avg.com
Version: 8.0.176 / Virus Database: 270.9.19/1853 - Release Date: 12/17/2008
8:31 AM

Revision history for this message
Best bengtan (bengtan) said :
#3

Hi,

You can try the following for tma_custom to have additional theme settings, including optional breadcrumbs.

Copy and paste the following:

<?php
function tma_custom_settings($saved_settings) {

  // Get the default values from the .info file.
  $themes = list_themes();
  $defaults = $themes['tma_custom']->info['settings'];

  // Merge the saved variables and their default values.
  $settings = array_merge($defaults, $saved_settings);

  $form = array();

  // Add the base theme's settings.
  include_once './' . drupal_get_path('theme', 'zen') . '/theme-settings.php';
  $form += zen_settings($saved_settings, $defaults);
  $form['breadcrumb']['zen_breadcrumb_leading'] = array(
    '#type' => 'checkbox',
    '#title' => t('Prepend a separator to the beginning of the breadcrumb'),
    '#default_value' => $settings['zen_breadcrumb_leading'],
    '#description' => t(''),
  );

  // Remove some of the base theme's settings.
  unset($form['themedev']['zen_layout']); // We don't need to select the base stylesheet.

  // Return the form
  return $form;
}

into a text file and save it as theme-settings.php under your tma_custom directory. Then clear your site cache by going to .../admin/settings/performance and clicking on 'Clear cached data' at the bottom.

Then visit .../admin/build/themes/settings/tma_custom (presuming it tma_custom is already enabled), and you should see additional theme settings.

On other matters ...

profiles/prosepoint/themes/tma/tma/foo.gif is intentionally a non-existent file.

For sites/all/themes/pp_newswire/ie.css, you can just copy newswire/ie.css to be pp_newswire/ie.css.

Revision history for this message
Donnita (donnita) said :
#4

Worked like a charm, thank you very much.

Donnita