Make link in table view
Posted: 2015-05-27 12:08
I need to build clickable links from the content of my field, in the table view.
Example:
1) Table view of table X
2) The field 'mynumber' contains a text string (for example '156241')
3) Instead of simply displaying '156241' in my column i would like to make that number into a clickable link like this :
<a href="http://www.mysite.com/documentation/156241.pdf" target="_blank">156241</a>
I suppose I could do something like this ( with proper escaping of the quotes ):
echo "<a href="http://www.mysite.com/documentation/" . mynumber . " target="_blank">" . mynumber . "</a>";
4) But where do I add this code?
Thanks for all help!
Example:
1) Table view of table X
2) The field 'mynumber' contains a text string (for example '156241')
3) Instead of simply displaying '156241' in my column i would like to make that number into a clickable link like this :
<a href="http://www.mysite.com/documentation/156241.pdf" target="_blank">156241</a>
I suppose I could do something like this ( with proper escaping of the quotes ):
echo "<a href="http://www.mysite.com/documentation/" . mynumber . " target="_blank">" . mynumber . "</a>";
4) But where do I add this code?
Thanks for all help!