Using URL from “Link field” in custom template
-
I have a field called ‘website’, which I’ve set as a “Link field”. I know that including <?php $record->print_value(‘website’) ?> in my custom template prints ‘website’s link text, linked to ‘website’s url. I like this for the details page, which I’ve linked to as “more info” from the main list.
What I would like to do in my custom template, however, is to have a link where the text is the participant’s name and the url is their website. In other words, I want to know what I should replace [STUFF] with to grab just the url from ‘website’ in the following:
<a href="<?php $record->[STUFF] ?>"><?php $record->print_value( 'first_name' ) ?> <?php $record->print_value( 'last_name' ) ?></a>
Thank you!
- The topic ‘Using URL from “Link field” in custom template’ is closed to new replies.