Quantcast
Channel: Recent posts across whole site
Viewing all articles
Browse latest Browse all 49224

Using template to configure link from a field

$
0
0

So this may be a silly, simple question... but it has me. I am trying to modify a field to be output as a link. Scenario: the user adds his/her personal website address (akanik.com) in to the "Website" field. The template takes that field, enters the value of it into the a href and therefore makes the original field data (akanik.com) clickable.

     <div class="each left">
     <?php print render($content['field_email']); ?>

       <a href="http://<?php print ($content['field_website']); ?>"><?php print render($content['field_website']); ?></a>

      <?php print render($content['body']); ?>
     </div>

With the above structure, what is returned is an array, not the value of field_website. What syntax would I need to accomplish linking the field to what it describes?

Thanks,
Allie


Viewing all articles
Browse latest Browse all 49224