Page 1 of 1

Make link in table view

Posted: 2015-05-27 12:08
by eagle
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!

Re: Make link in table view

Posted: 2015-05-27 12:42
by eagle
Found the solution, so this topic can be closed.

Answer to #4 above is to edit the file \templates\x_template_TV.html

Re: Make link in table view

Posted: 2017-02-27 10:09
by benscha
Hi Guys

i like to do something identical, but actually it is not working

i try to add a link to my file "lashow_templateDV.html"

Code: Select all

<div class="form-control-static" id="file"><?php echo "<a href="http://mywebserver2/" . auftrag . " target="_blank">" File "</a>";  </div>
the output i get is just...

" File "";

does anybody have any hint for me?

thx!