Solved

How do i clickable image in gallery?

Posted on 2010-08-13
3
235 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Consider the following scenario: You are working on a website and make something great - something that lets the server work with information submitted by your users. This could be anything, from a simple guestbook to a e-Money solution. But what…
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 …
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

758 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now