Solved

How do i clickable image in gallery?

Posted on 2010-08-13
3
239 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

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…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

630 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