Home News Contact Us Forum About Us Demos Products F.A.Q.
Shopping Cart
You currently have 0 items in your cart.


Recent Events
  • 31/12/2023 New Year SALE

    We are glad to announce New Year SALE. 25% discount for all our extensions. Use NY24 coupon code. Hurry up the discount is valid till 7 January.

  • 21/11/2023 BLACK FRIDAY 23 is coming

    BIG SALE, 35% discount for all our extensions. Use BF23 coupon code. Hurry up the discount is valid till 27 November.


2Checkout.com, Inc. is an authorized retailer of goods and services provided by ARI Soft. 2CheckOut




Follow us on twitter



Welcome, Guest
Please Login or Register.    Lost Password?

Live URL in Data Table
(1 viewing) (1) Guest
Go to bottomPage: 12
TOPIC: Live URL in Data Table
#54819
Live URL in Data Table 8 Years, 10 Months ago Karma: 0
I am trying to work with the Data Tables and wondering if it is possible to have live links within a .csv load. If not, is there a format that could be used to support having live links?

I have emails in a link currently and would like to create a table with URL links in it as well.

visitmarshallmn.com/main/index.php/play/associations
The administrator has disabled public write access.
 
#54820
Re:Live URL in Data Table 8 Years, 10 Months ago Karma: 747
Hello,

If you want to convert emails in "Email" field to HTML hyperlinks then open data source settings page, set "Columns settings -> ID" parameter to Email value and populate "Columns settings -> Format" parameter with the following value:

<a href="mailto:{$value}">Email</a>

Regards,
ARI Soft
The administrator has disabled public write access.
 
#54821
Re:Live URL in Data Table 8 Years, 10 Months ago Karma: 0
That's great. So to put a web url in, I would set the ID parameter to HTML? What would the markup be for it in the .csv?
The administrator has disabled public write access.
 
#54822
Re:Live URL in Data Table 8 Years, 10 Months ago Karma: 747
Enter a name of a column from a CSV file in "Columns settings -> ID" parameter. For example if emails are stored in "Contact email" field then populate the parameter with Contact email value. If links (for example www.domain.com, www.link.com and etc.) are stored in ProductLink column then set "Columns settings -> ID" parameter to ProductLink value and enter the following value in "Columns settings -> Format" parameter:

<a href="{$value}">Link</a>

Regards,
ARI Soft
The administrator has disabled public write access.
 
#54824
Re:Live URL in Data Table 8 Years, 10 Months ago Karma: 0
That is awesome and should do the trick. I hate to be a pest but I have one more question. Will it support the coding to mask a long url?

For example, I would like the link to say, Click Here for This Week's Distribution (maybe not those exact words) but the url is hyper long, api.longurl.org/v2/services&format=json&callback=foo&user-agent=Application-Name%2F3.7 (the ones we would be using would be almost 3x that long). I know in html formatting it is possible, just checking if there is specific coding necessary for this.

Thank you ever so much, this may be the solution I've been hunting for.
The administrator has disabled public write access.
 
#54825
Re:Live URL in Data Table 8 Years, 10 Months ago Karma: 747
"Link" word will be shown instead of links for the sample code from our previous post.

Regards,
ARI Soft
The administrator has disabled public write access.
 
Go to topPage: 12