ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Baffled Newbie

August 07, 2014 11:52am

Subscribe [2]
  • #1 / Aug 07, 2014 11:52am

    Dgrant

    1 posts

    Hi

    I am trying to make the simplest of changes to my site.  The homepage has a slideshow - i need the images of the slideshow to have a hyperlink to a new page ( so if someone clicks the slideshow image they are taking to a booking engine.  I cannot find the file I need to place the link - any ideas?

  • #2 / Aug 07, 2014 1:20pm

    Dgrant

    1 posts

    Ok, so I have this code in the default.html file :

    <?php foreach(glob($_SERVER[‘DOCUMENT_ROOT’].’/images/slideshow/*.jpg’) as $img): ?>

       

          <?=str_replace($_SERVER[

       

        <?php endforeach; ?>

    what i need is to be able to make the image link to a different page.  I tried wrapping it but when I do the entire slideshow disappears or the images fail to show on the page.  Any ideas?

  • #3 / Aug 08, 2014 12:14pm

    Boyink!

    5011 posts

    IMHO it’s time to implement the slideshow differently. Not sure why PHP was used - this could have been done with EE managing the content and javascript controlling the slideshow.

    If you are certain of your slideshow need that’s the approach I’d recommend.

    Me, I’m over homepage slideshows. There’s good research that users don’t see past the first image anyway.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases