Forums

[resolved] [Plugin: NextGEN Gallery] How do you link a thumbnail gallery to pages (9 posts)

  1. beckhamlkc
    Member
    Posted 3 years ago #

    Hello,

    I would like to know if anyone could figure out how to link a thumnail image in a gallery to a page/post?

    instead of displaying the lightbox/shutter effect (full size image) whenm clicking on 1 of those thumbnail in a gallery, I wanted it to redirect to a page/post.

    Cheers

  2. carldesigns
    Member
    Posted 3 years ago #

  3. beckhamlkc
    Member
    Posted 3 years ago #

    i quote mothnyc:

    Parap's solution got me almost there...

    What I'm going for is a grid of images (magazine covers) that link to urls (pages hosting all the articles from each issue). Paraps solution enabled me to link each image with a webpage, but unfortunately, those webpages are coming up inside the image rotator. Is there anyway to get a direct link?

    That was an issue as well.. Is there a way to redirect it to a page/post?

    p/s: I think we can do something at Options->Effects,

    JavaScript Thumbnail effect:Custom

    Link Code line : ????

    But not sure what to put on Link Code line..

    Appreciate anyone who could enlighten.. :)

  4. beckhamlkc
    Member
    Posted 3 years ago #

    This is resolved. I made changes to <plugindirectory> -->view --> gallery.php
    I changed the thumb's hyperlink tag to alttext. Go ahead and put the page you want to point at the alt field of your image.

    <!-- Thumbnails -->
    	<?php foreach ($images as $image) : ?>
    
    	<div id="ngg-image-<?php echo $image->pid ?>" class="ngg-gallery-thumbnail-box">
    		<div class="ngg-gallery-thumbnail" >
    			<a href="<?php echo $image->alttext ?>" title="<?php echo $image->description ?>" <?php echo $image->thumbcode ?> >
    				<img title="<?php echo $image->description ?>" alt="<?php echo $image->alttext ?>" src="<?php echo $image->thumbnailURL ?>" <?php echo $image->size ?> />
    			</a>
    		</div>
    	</div>
     	<?php endforeach; ?>

    Cheers,

    Long live NextGen Gallery and Alex ;)

  5. Alex Rabe
    Member
    Posted 3 years ago #

    Cool solution, please note that you can place your template into your theme folder to save it for the next upgrade

  6. stevepalf
    Member
    Posted 3 years ago #

    Sorry Beckhamlkc where is that file?

  7. tdanyo
    Member
    Posted 3 years ago #

    I'm with Steve.... where is the path way to >plugindirectory> -->view --> gallery.php?

    And pnce there is this a matter or switching out code for code?

    Thanks!

  8. goodenvy
    Member
    Posted 3 years ago #

    I have a visual and step by step tutorial for this:

    http://home.yourconame.com/nextgen-linking-image-to-url/2009/archives/

    Thanks to beckhamlkc for the light of leading.

    ~Adrie Silva
    http://www.silvaprints.com

  9. xcpdq
    Member
    Posted 3 years ago #

    Anyone knows how can I link the image (not thumbnail) to an URL? So when the user clicks the thumbnail they should be redirected to an URL instead of closing the image. I really need this. Please advise.

    Thank you!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.