Is it possible to dynamically change a link on a colorbox popup a specific field value?
I have a view displaying a list of external links that have been added using a custom content type. And what I would like to do is be able to have a colorbox popup when you click on one of those links that explains that you are about to go to an external site.
I have the colorbox popup working with a button to go to that link, but I need the link of the colorbox button to change depending on which node they click on in the view.
My field is "field_conf_presentation_link"
Can I pass that value in anyway to the link that the popup would have?
Here is my view displaying the link they would click on:
Here is the code I have on my page template file that creates the content for the popup:
<div style="display:none;">
<div id="gate">
<?php print '<p>' . t('You are now being redirected to view this live session.') . '</p>'; ?>
<?php print l('Watch Now ›', '**LINK HERE**', array('attributes' => array('class' => array('btn-small')) ) ); ?>
</div>
I've been looking around and see that there is a module called Colorbox Node that might be able to give me what I want, but I am hoping I can get around that for something like this.