Acquia Slate 3.x theming taxonomy

Events happening in the community are now at Drupal community events on www.drupal.org.
Posted by openmediaforge.org on July 6, 2010 at 4:10pm

Okay so the site in question is: http://openmediaforge.org/

I updated to acquia_slate-6.x-3.0-beta1.tar.gz so I could get integrated drop down menu support which by the way is excellent.

I do not want the default display behavior for taxonomy terms, I liked the way it was done in slate 2.x and the options available, so I started making the changes myself. Specifically I liked no vocab terms on the frontpage and I want the terms listed by vocab with the vocab name on each node instead of all the terms clumped together below the node content.

I used the 'frontpage' View and then created views-view--frontpage.tpl.php file:

<?php
// $Id: node.tpl.php,v 1.3 2010年07月02日 23:14:21 eternalistic Exp $
?>


<div id="node-<?php print $node->nid; ?>" class="node <?php print $node_classes; ?>">
<div class="inner">
<?php print $picture ?>

<?php if ($page == 0): ?>
<h2 class="title"><a href="<?php print $node_url ?>" title="<?php print $title ?>"><?php print $title ?></a></h2>
<?php endif; ?>

<?php if ($submitted): ?>
<div class="meta">
<span class="submitted"><?php print $submitted ?></span>
</div>
<?php endif; ?>

<?php if ($node_top && !$teaser): ?>
<div id="node-top" class="node-top row nested">
<div id="node-top-inner" class="node-top-inner inner">
<?php print $node_top; ?>
</div><!-- /node-top-inner -->
</div><!-- /node-top -->
<?php endif; ?>

<div class="content clearfix">
<?php print $content ?>
</div>

<?php if ($links): ?>
<div class="links">
<div class="links-inner">
<?php print $links; ?>
</div>
</div>
<?php endif; ?>
</div><!-- /inner -->

<?php if ($node_bottom && !$teaser): ?>
<div id="node-bottom" class="node-bottom row nested">
<div id="node-bottom-inner" class="node-bottom-inner inner">
<?php print $node_bottom; ?>
</div><!-- /node-bottom-inner -->
</div><!-- /node-bottom -->
<?php endif; ?>
</div><!-- /node-<?php print $node->nid; ?> -->

Which generates the output shown in the attached image: slate_3_test_view.jpg . This is the look I want.

Now when I use the 'Term Display' module as suggested here:
http://fusiondrupalthemes.com/support/documentation/more-control

to control the style of the displayed taxonomy I start to see problems in the view I created. The above view has the $terms variable stripped out but when I select "List" or "Custom" as the Display style for the vocabulary I see that my view gets broken (attached: slate_3_test_view_broken.jpg ).

The view is designed to show no taxonomy yet when I used the suggested module to control visibility of the vocabs I still see them. This does not seem like proper behavior for controlling these settings which were easy as pie to set in slate 2.x

Is there another way to go about getting the old functionality of the theme back?

side note: I looked into the template file for slate 3.x and it does not have the taxonomy preprocess function that was in 2.x. When I tried to transplant it to 3.x nothing happened.

AttachmentSize
slate_3_test_view.jpg 75.97 KB
slate_3_test_view_broken.jpg 62.25 KB

TNT Themes

Group organizers

Group categories

Type of post

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

AltStyle によって変換されたページ (->オリジナル) /