I love GCG Taxonomy but how can I set up to a content type without the displaying multiple categories

Comments

EvanDonovan’s picture

I would recommend that you post in the issue queue for the module: http://drupal.org/project/issues/gcg. You're more likely to get a response there.

I would like to know the answer to this as well, if it's possible.

Online Publications Editor,
UrbanMinistry.org
http://www.urbanministry.org/user/evandonovan

Nonprofit / EdTech Mentor
http://drupal.org/user/168664

Chad_Dupuis’s picture

The best way I know of, outside of hacking the module, would be to use a different template file for the particular cck nodes you have and remove the theme line where it prints taxonomy listings.

Something like the following in your node.tpl.php should work:

$uri_request_id = $_SERVER['REQUEST_URI'];
$section = explode("/", $uri_request_id);
// The following would be the first part of the url for pages you do not want taxonomy items //
	if ($section[1]=="pageswithnotax") {
		include 'node-notax.tpl.php'; return;
		}
	if ($section[2]=="subpageswithnotax") {
		include 'node-notax.tpl.php'; return;
	}
include 'node-all.tpl.php'; return;

node-notax.tpl.php would have the following commented out your own theme may vary:

 <?php if ($terms) { ?>
    <span class="taxonomy"><?php print $terms?></span>
  <?php }; ?>