Solved

How do i clickable image in gallery?

Posted on 2010-08-13
3
236 Views
Last Modified: 2012-06-27
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
0
Comment
Question by:vadura
  • 2
3 Comments
 
LVL 17

Expert Comment

by:Thomas4019
ID: 33431614
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
 

Author Comment

by:vadura
ID: 33431825
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
 

Accepted Solution

by:
vadura earned 0 total points
ID: 33432097
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

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article will explain how to display the first page of your Microsoft Word documents (e.g. .doc, .docx, etc...) as images in a web page programatically. I have scoured the web on a way to do this unsuccessfully. The goal is to produce something …
Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question