Hi there, short question: Is there a way to show breadcrumb navigation only in forums?

i dont want breadcrumbs loaded on user profiles!

greetings

Comments

WorldFallz’s picture

Depending on your theme, you can edit your page.tpl.php. Look for <?php print $breadcrumb; ?> and replace it with something like:

<?php if ($node->type == 'forum'): ?>
  <?php print $breadcrumb; ?>
<?php endif; ?>
Witch’s picture

Hey WorldFallz.

Thank you for repsonding that fast!

It worked very very fine to me! There is another question i have. what do i have to add, when i want a breadcrumb also for the content type "news"?.

Does your Solution even work for a special taxonomy vocabulary? For example the vocab with the id 4.

I appreciate your code much! thank you

Witch’s picture

bump

Witch’s picture

bump again. hope somebody coulld help.

WorldFallz’s picture

To add the 'news' content type you should be able to do something like:

<?php if (($node->type == 'forum') || ($node->type == 'news')): ?>
  <?php print $breadcrumb; ?>
<?php endif; ?>

Not sure about taxonomy.