[themes] How To Theme Teaser Apart From Nodes

Will Evans will at soulatomic.com
Tue Jun 27 00:29:29 UTC 2006


Hi Joon,

Thanks for sending this and taking the time to reply.  I might be a  
bit out of my league here, I'm very familiar with CSS once I get to  
that point. I understand that I need to create a custom .tpl file  
although I'm not sure the best way to go about that.

Would I include what you described below in the node.tpl.php file or  
start from scratch. I'm assuming that I would the teaser in a <div>  
tag and go from there?

Thanks,

Will

On Jun 26, 2006, at 8:08 PM, Joon Park wrote:

> 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.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/themes/attachments/20060627/af2d9083/attachment.htm


More information about the themes mailing list