This forum is for assistance with theme development.

Xtemplate and Taxonomy Images

How would you go about adapting xtemplate.engine to display a Taxonomy Image? I changed the title section of the header as follows:

if ($title = drupal_get_title()) {
$xtemplate->template->assign("title", $title);
$xtemplate->template->assign("breadcrumb", theme("breadcrumb", drupal_get_breadcrumb()));
$xtemplate->template->assign("taximg",taxonomy_image_display($term->tid));
$xtemplate->template->parse("header.title");
}

What did I do wrong?

Display Post Information with Manji

The global checkboxes that are intended to control the display of Post Information (i.e.: Username, Timestamp, etc.) do not seem to function with phptemplate themes such as Manji or Obsidian, though they do with Xtemplate-based themes. Has anyone else experienced this problem and found a solution?

Smil + VML implementation ... dtd question

Hello Friends,

I have had some success implementing the time2 and vml behaviors into this portal. Time2 worked with the strict dtd, but not the vml, so we changed to the transitional dtd. We are able to use the time2 behavior via the css as class="time" under the namespace "ed" (rather than t:)...

As things are working as expected, my question is then, are there un-seen consequences to using the transitional dtd that we aren't aware of?

phpTemplate: '$title' conditional placement in node.tpl vs. page.tpl ?

I'm working on a site that has some interesting challenges in layout that would be made much much easier if I could get the title on the front page and the title on node pages to get called up in the same way.

With page.tpl.php the title variable is called thus:

				<?php if ($title != ""): ?>
					<h2 class="content-title"><?php print $title ?></h2>
				<?php endif; ?>

Some way further down, the $content is called.

In node.tpl.php the title variable is called thus:

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

I am assuming there must be good reasons for this, but I'm too new at the code structure (or I'm just too dense) to figure it out.

My question is this: Is there an essential reason why the title variable is called by node vs. page using mutually exclusive conditionals? Would there be potentially dire (and/or unforseen) consequences to simply call ALL $title calls via node.tpl.php (without the conditional), and take out the $title call in page.tpl.php altogether?

I suppose I will just give it a shot in the morning, but what I'm afraid of is that it will seem to work, only to surprise me later.

Any thoughtful reply would be greatly appreciated!

Goofy Forum Posting in IE on Mac?

I'm kind of a newbie with Drupal 4.5.2 and I've been playing with a bunch of modules and themes. Right now, I'm wanting to use Goofy, but am experiencing problems though they don't seem to be exactly like those noted in forum posts.

Making $node->type or similar available in page.tpl.php

Hi all. What I am wanting to do is make the display of the node title conditional on the node type in a phptemplate theme. The only stumbling block is that information about the node type is not available within page.tpl.php. The node object does not exist within _phptemplate_callback() either, so I am unable to use _phptemplate_variables() to add the type information to vars[]. Is there another way to get access to the node type?

I suppose I could create a new module with it's own template but that seems like overkill.

Pages

Subscribe with RSS Subscribe to RSS - Theme development