Make link in table view

If you're a new user of AppGini, feel free to ask general usage questions, or look for answers here.
Post Reply
eagle
Veteran Member
Posts: 39
Joined: 2013-01-09 15:38

Make link in table view

Post by eagle » 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!

eagle
Veteran Member
Posts: 39
Joined: 2013-01-09 15:38

Re: Make link in table view

Post by eagle » 2015-05-27 12:42

Found the solution, so this topic can be closed.

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

benscha
Posts: 3
Joined: 2017-02-14 08:44

Re: Make link in table view

Post by benscha » 2017-02-27 10:09

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!

Post Reply