Node images not appearing on block
| Project: | Node Images |
| Version: | 6.x-2.1 |
| Component: | Miscellaneous |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
I use different views of node teasers for different reasons/displays. I create these through Views and call them differently through the node-nodetype.tpl templates.
In D5, I was able to show the node_images as and when required. However, in D6 I am not able to do that. The rest of the views are working e.g. styling of text, etc.
Somehow the node_images are getting stripped away.
Example (see the right-hand sidebar):
Where it is working (in D5 version): http://www.write2kill.in/expressionist/public-acts
Where it is NOT working (in D6 version): http://d6.write2kill.in/expressionist/public-acts
Am using this in the node template:
<h2 style="clear:both" class="headlinerandom"><a class="headlinerandom" href="<?php print $node_url ?>"><?php print $title ?></a></h2>
<?php if ($node->node_images) { ?>
<?php if ($page == 0): ?>
<div class="pictoprectr"><?php print $node->node_images ?><?php ?></div>
<?php endif; ?>
<?php }?>
<div class="thinbody">
<?php print $content?>
<a href="<?php print $node_url?>"><img border="0" title="Continue reading" alt="Continue reading" src="./images/more.gif" /></a>
</div>And this in the particular block template:
<div style="margin-bottom:20px" class="block block-<?php print $block->module; ?>" id="block-<?php print $block->module; ?>-<?php print $block->delta; ?>">
<div class="blockinner">
<div><img src="./images/strip-random.gif" border="0" alt="Random articles" /></div>
<div class="content">
<?php print $block->content; ?>
</div>
</div>
</div>I even added this to both to see that the IMG tags are not stripped away but did NOT work:
<? if($page == 0){ $content=strip_tags($content, '<img>'); } ?>
Any pointers will be a great help.
Thanks.
Subir

#1
I have found why the node_images don't show up. It's because in the FILTER, Node_Images = Hase Images does not show up.
#2
I just compared 5.x-3.x with 6.x-2.1 and see that there are no Views API hooks.