I've been looking for weeks for a gallery preview-like solution for my news blog, and this is the best thing I've found so far. Unfortunately, I'm having two issue when implementing the block:

1) The module won't show on the teasers posted to the front page, even though in the block settings I removed the "node/*" exception so it would display on all pages

2) When clicking on the teaser to view the full story, the block appears at the bottom, below the section where readers enter there comments

I apologize if this isn't actually a jCarousel issue, but I wasn't sure where else to go. I'm using Drupal 6.4, the latest build of CCK, and imagefield.

Thanks,

Jeff

Comments

yang_yi_cn’s picture

1. regarding the front page. The jCarousel block will not show as it's not a single node and the block don't know where to find the images. I understand you probably want to have a block under each node's teaser, reading images from each node. however that functionality seems needs more works then the current module can do. You may achieve that by do some code in the theme/templates, but it will need some effort.

2. again, it's a theme issue, you can have a look at http://drupal.org/node/283450 (place content/blocks before comments). It's for Drupal 5. But you can do similar thing in Drupal 6. I'll try it here:

yourtheme.info, add the following:

regions[left] = Left sidebar
regions[right] = Right sidebar
regions[content] = Content
regions[header] = Header
regions[footer] = Footer
regions[content_bottom] = Content bottom

node.tpl.php

  <div class="node<?php if ($sticky) { print " sticky"; } ?><?php if (!$status) { print " node-unpublished"; } ?>">
    <?php if ($picture) {
      print $picture;
    }?>
    <?php if ($page == 0) { ?><h2 class="title"><a href="<?php print $node_url?>"><?php print $title?></a></h2><?php }; ?>
    <span class="submitted"><?php print $submitted?></span>
    <span class="taxonomy"><?php print $terms?></span>
    <div class="content"><?php print $content?></div>
    <?php if ($links) { ?><div class="links">&raquo; <?php print $links?></div><?php }; ?>

    <!-- the new region in a div -->
    <div class="content_bottom"><?php print $content_bottom; ?></div>
  </div>

notice the content_bottom region will be at the end of a node, or, in other words, before comments.

remember clear cache to make the region work. (admin/settings/performance)

put the jCarousle block to the content_botton region. (admin/build/blocks)

that should work.

Sonic626’s picture

This is as good of a response as I could have hoped for, even if I still have more research to do for my intended functionality:) Thanks again, you can consider this closed. Keep up the great work!

yang_yi_cn’s picture

Status: Active » Closed (fixed)