I am importing some very simple JSON data from another web site, It includes five items. Two of them are URLs. Just the string though. For example 'shadowscope.com' or 'bbs.shadowscope.com
I am currently using the cell content prefix to add the http:// to the first and telnet:// to the second column. Is there a way I can turn it into a clickable link? I tried adding the <a href=" using the cell content prefix and suffix but figured out that doesn't work, it just displays it.
I was thinking that possibly I could do it with CSS but don't really know enough about it to do that.
Thank you for your purchase, and sorry for the late response.
Unfortunately, using the prefix you won't be able to do this. The plugin is pulling the data from the JSON file, and showing it in the table. Prepending data to the value is only for display purposes.
To show a valid URL, you would need to modify the JSON input and display the entire URL. You can prepare a PHP adapter, for example, that would make this change before the data reaches wpDataTables, and then create a table linked to a Serialized PHP array.
I am importing some very simple JSON data from another web site, It includes five items. Two of them are URLs. Just the string though. For example 'shadowscope.com' or 'bbs.shadowscope.com
I am currently using the cell content prefix to add the http:// to the first and telnet:// to the second column. Is there a way I can turn it into a clickable link? I tried adding the <a href=" using the cell content prefix and suffix but figured out that doesn't work, it just displays it.
I was thinking that possibly I could do it with CSS but don't really know enough about it to do that.
Any suggestions would be helpful. Thanks!
Any way to do this?
Hello Richard
Thank you for your purchase, and sorry for the late response.
Unfortunately, using the prefix you won't be able to do this. The plugin is pulling the data from the JSON file, and showing it in the table. Prepending data to the value is only for display purposes.
To show a valid URL, you would need to modify the JSON input and display the entire URL. You can prepare a PHP adapter, for example, that would make this change before the data reaches wpDataTables, and then create a table linked to a Serialized PHP array.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables