[themes] How To Theme Teaser Apart From Nodes

Joon Park dvessel at gmail.com
Tue Jun 27 00:08:28 UTC 2006


Hi, been lurking here for a while. My first post. :)

You could just check if the $teaser variable returns anything and  
have it spit out anything inside the conditional statement.

<?php if($teaser) { ?>
   <p>I'm a teaser.</p>
<?php } ?>

I'm doing something similar but it's set to a class then I can  
control it from my style sheet.

You can read about it here.

http://www.dvessel.com/node/87

It covers a few more things too.


––––---——_–joon park ——----––––
    http://www.dvessel.com
––––---—\\—————————————----––––


On Jun 26, 2006, at 7:42 PM, Will Evans wrote:

> Hello Drupal Friends,
>
> Is it possible to theme teasers differently from the full node? If  
> so what is the best way? I think I remember seeing a post about  
> using a custom .tpl file of some sort, but I'm not exactly sure  
> what I'm looking for or what to do.
>
> Cheers,
>
> Will
> _______________________________________________
> themes mailing list
> themes at drupal.org
> http://lists.drupal.org/mailman/listinfo/themes



More information about the themes mailing list