Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How do i clickable image in gallery?

Posted on 2010-08-13
3
Medium Priority
?
241 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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
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 …
Suggested Courses

879 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