How do i clickable image in gallery?

Hi,
i 've tried this example:
drupal.org/node/134124
It's OK, but i need little modify it. How to replace text 'next' with current image (variable $content) in the  $next_node_link? My idea is make clickable images linked to next node.
I've tried modify this row:
$next_node_link = next_prev($node->nid, $node->type, 'next', t('next'), NULL, ' >>');

Open in new window

with
$next_node_link = next_prev($node->nid, $node->type, 'next', $content, NULL, NULL);

Open in new window

but i see source code instead of image on the page.
What do i wrong, please? Thx
vaduraAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
vaduraConnect With a Mentor Author Commented:
Oh, my stupid question.

This is the solution of the problem:

print  htmlspecialchars_decode($next_node_link);

instead of

print $next_node_link;

Thanks for your time


0
 
Thomas4019Commented:
Here's a list of modules that provide image slideshow like functionality,http://drupal.org/node/418616. It's a lot easier if you use a module that's close to what you want.

Could you upload a screenshot of it showing the source code instead of the image?
0
 
vaduraAuthor Commented:
Thanks for modules, i'll try them,
But my question is still open because an answer can me help understand how drupal works.

This is what i see.

Thx
image.jpg
0
All Courses

From novice to tech pro — start learning today.