External link

3 posts by 2 authors in: Forums > CMS Builder
Last Post: July 17, 2012   (RSS)

Re: [Jesus] External link

By Jason - July 16, 2012

Hi Jesus,

What you can do is have a field in your article section called "external_link". You can then check to see if there is a value or not like this:

<?php if ($record['external_link']): ?>
<a href = "<?php echo $record['external_link'];?>">
<?php else: ?>
<a href = "<?php echo $record['_link'];?>">
<?php endif ?>

<?php echo $record['title'];?></a>


Hope this helps
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [Jason] External link

By Jesus - July 17, 2012

Thank you Jason, this will do it!