Probably a relatively easy fix... I am displaying a text link list of
projects. What I am trying to do is showing a specific Preview picture with
javascript when hovering single project text link. Everything is working,
except that all Preview pictures are shown instead of just the one specific
to the hovered project text link. Any input highly appreciated!
This is what I got so far:
<?phpforeach ($projects as $project):
if ($project['Project']['Kategorie'] == 'buch'): ?>
<tr>
<td>
<div class="indexlink">
<?php echo $this->Html->link(($project['Project']['Name']),
array('action' => 'buch', $project['Project']['id'])); ?>
</div>
<?php if (($project['Project']['Preview']) == true): ?>
<div class="indexpic">
<!--THE NEXT LINE IS WHERE IT DOES NOT WORK AS I WOULD
LIKE IT TO-->
<?php echo
$this->Html->image($project['Project']['Preview']);?>
</div>
<?php endif; ?>
</td>
</tr><?php
endif;
endforeach; ?>
--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.