Closed othmoz closed 13 years ago
yes, plugin set node data by behavior, you can show attachments (images) like this:
<?php
foreach ($node['Attachments'] as $photo) {
echo $html->link(
$image->resize('/uploads/' . $photo['Node']['slug'], 140, 140),
'/uploads/' . $photo['Node']['slug'],
array('escape' => false, 'rel' => 'gallery')
);
}
?>
how do you show these attachements in node view ? I don't see an element in the plugin or a block ? does the plugin set data in viewVars or something ?