Hello,
I'm currently setting up taxonomy for all the pages on my site. My question is, what determines what information is displayed on the page for the taxonomy? If I use bluemarine, I see this: Submitted by cleveland on Tue, 2006-09-19 14:50. About Us
On the template I'd like to use (multiflex), I only see this: About Us
I know the stylesheet determines how it should look, but how do I change what is displayed?
- jody
On the template I'd like to use (multiflex), I only see this: About Us
In a phptemplate theme, the position of the default variable $terms determines where the terms will actually appear. $terms is shorthand for "pipe-delimited set of all terms assigned to this node". If you'd like an entirely different display, you don't HAVE to use $terms. $terms is just shorthand for:
theme('links', $taxonomy, array('class' => 'links inline')),
but you have access to the entire raw data of a taxonomy, to display it however you'd like (presuming you know the PHP to do so). You can see this raw gobbledygook data by adding the following to your node.tpl.php:
<?php print_r($taxonomy); ?>
Hello,
In a phptemplate theme, the position of the default variable $terms determines where the terms will actually appear. $terms is shorthand for "pipe-delimited set of all terms assigned to this node". If you'd like an entirely different display, you don't HAVE to use $terms. $terms is just shorthand for:
theme('links', $taxonomy, array('class' => 'links inline')),
but you have access to the entire raw data of a taxonomy, to display it however you'd like (presuming you know the PHP to do so). You can see this raw gobbledygook data by adding the following to your node.tpl.php:
<?php print_r($taxonomy); ?>
I looked at the node.tpl.php for both bluemarine, and multiflex. But, they both say exactly the same thing: <span class="taxonomy"><?php print $terms?></span>
If they both have the same thing in node.tpl.php, why would they display different things? Ideally, I'd like multiflex to display the taxonomy the same as bluemarine does.
- jody
Just want to make sure that you realize the "Submitted by cleveland on Tue, 2006-09-19 14:50." stuff is not part of the taxonomy display. That is the node submission information that comes from
<?php print $submitted?>
in node.tpl.php. If this is what you are referring to as different, then you should be able to just add that code to your multiflex node.tpl.php where you want it to show up.
Ah, it's all clear to me now.
Thanks!
- jody
And if it is present it can be turned on and off for 4.7 by node type (blog, page, etc.)
Set which pages you want a byline ("submitted by") text to appear on at: administer » themes » configure.
ben member, Agaric Design Collective http://AgaricDesign.com - "Open Source Web Development"
On 9/21/06, Jody Cleveland Cleveland@winnefox.org wrote:
Just want to make sure that you realize the "Submitted by cleveland on Tue, 2006-09-19 14:50." stuff is not part of the taxonomy display. That is the node submission information that comes from
<?php print $submitted?>
in node.tpl.php. If this is what you are referring to as different, then you should be able to just add that code to your multiflex node.tpl.php where you want it to show up.
Ah, it's all clear to me now.
Thanks!
- jody
themes mailing list themes@drupal.org http://lists.drupal.org/mailman/listinfo/themes
If I use bluemarine, I see this: Submitted by cleveland on Tue, 2006-09-19 14:50. About Us
On the template I'd like to use (multiflex), I only see this: About Us
So, is your question: why the author and date/time appears in one theme but not the other, while taxonomy appears in both?