Jump to content

Recommended Posts

Posted

Boa Tarde Pessoal,

Tenho um slideshow para DRUPAL7 e falta-me associar os links as imagems como faço isso no código?

<div class="big-slideshow-wrapper">
        <?php $slideshowId = rand(1, 10000); ?>

        <?php
                foreach($node->field_image["und"] as $node) {?>
                        
                                <img
                                        src="<?php echo check_url(file_create_url($node["uri"])); ?>"
                                        alt="<?php echo check_plain($node["alt"]) ?>"
                                        title="<?php echo check_plain($node["title"]); ?>" />
                        <?php
                }?>

</div>

<nav class="slider-nav"></nav>
Posted

<img

                                        src="<?php echo check_url(file_create_url($node["uri"])); ?>"

                                        alt="<?php echo check_plain($node["alt"]) ?>"

                                        title="<?php echo check_plain($node["title"]); ?>" />

Aqui tens a tag que mostra a imagem. Antes da imagem falta-te o <a href="#"> e depoix da imagem falta-te o </a>

Trocas o # pelo link desejado

Abraços e beijinhos,Rui Costa

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.