By ahneill on
Hi-
So I have a unique tpl file made for a "blog" content type. I have user pictures enabled for this content type, but I would like to alter the tpl file so that user pictures ONLY show up on the body, NOT in the teaser. Can someone please show me how the following tpl php code has to be altered to exclude user pictures from teasers ONLY?
thanks so much,
art
http://www.ucan.org
http://www.newmediarights.org
<div class="node<?php if ($sticky) { print " sticky"; } ?><?php if (!$status) { print " node-unpublished"; } ?>" id="node-<?php print $node->nid; ?>">
<?php if ($page == 0): ?>
<h2 class="title">
<a href="<?php print $node_url ?>"><?php print $title ?></a>
</h2>
<?php endif; ?>
<?php if ($picture) print $picture ?>
<?php if ($submitted or $has_terms): ?>
<div class="meta<?php if ($has_terms) : ?> with-taxonomy<?php endif; ?>">
<?php if ($submitted): ?>
<div class="submitted"><?php print t('Posted ') . format_date($node->created, 'custom', "F jS, Y") . t(' by ') . theme('username', $node); ?></div>
<?php endif; ?>
</div>
<?php endif; ?>
<div class="content">
<?php print $content?>
</div>
<?php if ($links): ?>
<div class="links">
<?php print $links ?>
</div>
<?php endif; ?>
</div>
[Edited to add <code> and </code> tags: nevets]
Comments
Small change
Change this part
to
or use cck and contemplate
or use the contemplate module for cck and totally customize the output...