Crazy-Awesome Taxonomy Pages

FAIL (the browser should render some flash content, not this).

Building awesome taxonomy pages using CCK,Views and template override.

In this episode, Bob will blow away your current perspective on Drupal's core taxonomy pages. By default, they're boring lists of content, but with a little magic and a few template overrides, these can be the coolest pages on your site.

Your rating: None Average: 4.2 (13 votes)

Comments

Thank you so much...I've been

Thank you so much...I've been sure for days that there was a better way to do this than anything I'd tried so far, and this is it!

Thank you so much for this

Thank you so much for this podcast! I'd been messing around with taxonomy page theming for hours and was about to give up until I found this video. Perfection.

You actually don't need to create a new content type for the taxonomy descriptions— you can use the description that's included in the native taxonomy metadata. Just include these lines in taxonomy_term_page.tpl.php (or in your view header):


$tid = (int)arg(2);
$term = taxonomy_get_term($tid);
print (filter_xss_admin($term->description));

Again, thanks so much!

This was really good

This was really good video...I'll dabble in Views a little and hopefully achieve the effect I'm going for (which somewhat different from what was shown).

=_

great video! but is it

great video!

but is it possible to do that with multiple taxonomy terms?

in views everything seems fine (in Argument type i am using term ids) and with

print_r($tids);

in my taxonomy_term_page.tpl.php i get:

Array ( [0] => 1 [1] => 2 [2] => 3 [3] => 4 [4] => 52 )

so the ids of the taxonomy-terms are there. but how do i display the according nodes?
as i am a newbie with php my guess would be something with foreach...

any help would be awesome!

truely awesome. i like it,

truely awesome. i like it, but taxonomy_term_page.tpl.php does not affect.

couldn't find any configuration related to this. any idea?

Very nice and helpful. I

Very nice and helpful.

I would like only to do the part of adding a description. How do I retrieve the default content - the one which is displayed if taxonomy_term_page.tpl.php would not been added? I have tried @content and $body - none brought the data.

Thanks!

Hi its easy . Clone your

Hi its easy . Clone your default page.tpl.php and replace

<?php if ($content): ?>

<?php print $content; ?>

<?php endif; ?>
with the above code.

www.re-present.com

Thanks!!! Your really

Thanks!!!
Your really great
Thanks

Nice use of an unorthodox

Nice use of an unorthodox method to get great results!

Excellent explanation of how

Excellent explanation of how to customize a view to display lists of nodes by term with a description of the term at the top of the view. Superb video!

Thank you, finally, Bravo

Thank you, finally, Bravo

Keep up the good work, the explanation is great and it makes sense even for a dumbo like me.

I have been trying to find the answer to this for ages.

bob - i love you :)

bob - i love you :)

Post new comment

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd><img>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.