- Posts: 10
- Thank you received: 0
Hey again, guys
Well, a have another problem actually.
One of my tables in MySQL contains a lot of hyperlinks. How can i make all of them clickable, when they display in your component?
what file i have to edit?
thanks!
Please Log in or Create an account to join the conversation.
Hi,
To be able to help you I need some more information about your data structure. What do you mean by "One of my tables in MySQL contains a lot of hyperlinks". Is it that you have one text field with html (<a>) tags in it - or do you have multiple url addresses in one field, or is it that you have one url address in one field?
Anyway the links are generated in components/com_grid/GridBuilder.php around line 520.
Please Log in or Create an account to join the conversation.
well, i actually have an field in my table that contains www adresses
i.imgur.com/DnBUf.jpg - here it is
and when i try to display it with TableJX , it is not linkable
i.imgur.com/KCPq4.jpg - the problem is here
Please Log in or Create an account to join the conversation.
Hi,
This is possible without hacking. You may want to use the "Link" option. Tick the checkbox "Link?" for the column that you want to be displayed as links. Another grid with linkable columns will appear. Select the same column in the dropdown box, and choose "url" option. This should do the job.
Regards,
Tomaž
Please Log in or Create an account to join the conversation.
well, i actually know about this feature, but the link looks like [http://mysitename/www.LINK.com]
what i have to do to remove mysitename from this link?
Please Log in or Create an account to join the conversation.
oh, i'm done with it
changed
$output = '<a href="'.$link.'">'.$data.'</a>'; (line 528)
to
$output = '<a href="http://'.$link.'">'.$data.'</a>';
thanks thomaz!
Please Log in or Create an account to join the conversation.