I have set 2 presets in image cache, big image 500 px and thumb 100 x 100 px.

I want to display thumb floated to the left in the article intro text, but the big picture i want to be displayed at the end of the opened article, not floated to the left.

I don't know how to do that.
Any help??

Comments

itzkowich’s picture

if you are working with cck and imagecache i assume you are using a view page to display the articles.
if you do, and you arranged the chosen fields order and still didnt got the result, i beleive you will have to go to the view tpl.php file and set it up...

missym’s picture

If you are a beginner, first look at your CSS. If you can't make it work that way, then start looking at your templates. This is the easiest approach.

fender-dupe’s picture

are there separate templates for teaser and full node?

dodorama’s picture

There's just one template file (node.tpl.php) but inside of it you can write different code for the teaser view and the full node view. Write code for the teaser inside an if statement where you check that page == 0 and full page code inside a statement where you check that page == 1. something like this:


<!-- everything outside the if statement will be printed both in the teaser and the full node -->
<div id="node-<?php print $node->nid; ?>" class="node<?php if ($sticky) { print ' sticky'; } ?><?php if (!$status) { print ' node-unpublished'; } ?>">

<?php print $picture ?>

<?php if ($page == 0): ?>
<!-- this is the code for teaser -->
  <h2><a href="<?php print $node_url ?>" title="<?php print $title ?>"><?php print $title ?></a></h2>
  <div class="content clear-block">
    <?php print $content ?>
  </div>
<?php endif; ?>

<?php if ($page == 1): ?>
<!-- this the code for full node -->
  <div class="content clear-block">
    <?php print $content ?>
  </div>
<?php endif; ?>

  <?php if ($submitted): ?>
    <span class="submitted"><?php print $submitted; ?></span>
  <?php endif; ?>

  

  <div class="clear-block">
    <div class="meta">
    <?php if ($taxonomy): ?>
      <div class="terms"><?php print $terms ?></div>
    <?php endif;?>
    </div>

    <?php if ($links): ?>
      <div class="links"><?php print $links; ?></div>
    <?php endif; ?>
  </div>

</div>

fender-dupe’s picture

One more question

i have created image field in cck and I have to insert the name for that field, and that name always shows up in the node. Is there a way to hide the name of the field in the displayed node?

dodorama’s picture

If you mean the label of the field all you have to do is click on to the "display fields" tab. (Go to content management>content types and click on manage fields you'll see the tab right to it). There you can hide the label of the image field