Apologies for cross-posting from this earlier thread, but I felt it needed a better subject line.
I am trying to use a taxonomy_context generated block as a navigation menu for a vocabulary. However, the moment the block is enabled, the nodes titles added to a term get displayed inside the block. This becomes quickly messy.
Could someone point out about which part of the code I would need to remove or comment out to prevent this from happening? I tried removing the following code (lines 232-300 of v 1.36.2.1 2005/06/16 02:48:42), but it didn't seem to help. I have just added the opening and closing php tags here to make it display nicely on this page.
Or, can I do this with css?
Thanks in advance.
<?php
/**
* Return the trimmed version of the body
*/
function taxonomy_context_get_teaser($body) {
$size = variable_get('teaser_length', 600);
/*
** If the size is zero, teasers are disabled so we
** return the entire body.
*/
if ($size == 0) {
return $body;
}
/*
** If a valid delimiter has been specified, use it to
** chop of the teaser. The delimiter can be outside
** the allowed range but no more than a factor two.
*/
$delimiter = strpos($body, "");
if ($delimiter > 0) {
return substr($body, 0, $delimiter);
}
/*
** If we have a short body, return the entire body:
*/
if (strlen($body) < $size) {
return $body;
}
/*
** In some cases no delimiter has been specified (eg.
** when posting using the Blogger API) in which case
** we try to split at paragraph boundaries.
*/
if ($length = strpos($body, "
", $size)) {
return substr($body, 0, $length);
}
if ($length = strpos($body, "
", $size)) {
return substr($body, 0, $length);
}
if ($length = strpos($body, "