I am using wpDataTable for pulling data from the api and there's a column for web address but am not sure how i will edit the columns to redirect to their url as they are different, instead of going to www.pha.co.za it then redirect to http://172.10.10.231/resources/lookups/www.pha.co.za how can i edit this record.
I have been using the below table as the data returned is in Json.
I'm not sure I understand what you're trying to do. wpDataTables doesn't have any APIs, so I'm guessing your question is about the URL bar when creating a table linked to an existing data source, right?
That is used to provide the link to the JSON file from which the table will be created. What do you mean by editing the columns? That all needs to be done in the JSON file itself, since tables linked to an existing data source cannot be edited.
I am using wpDataTable for pulling data from the api and there's a column for web address but am not sure how i will edit the columns to redirect to their url as they are different, instead of going to www.pha.co.za it then redirect to http://172.10.10.231/resources/lookups/www.pha.co.za how can i edit this record.
I have been using the below table as the data returned is in Json.
Create a table linked to an existing data source.Hello Pulego Tech
Thank you for your purchase.
I'm not sure I understand what you're trying to do. wpDataTables doesn't have any APIs, so I'm guessing your question is about the URL bar when creating a table linked to an existing data source, right?
That is used to provide the link to the JSON file from which the table will be created. What do you mean by editing the columns? That all needs to be done in the JSON file itself, since tables linked to an existing data source cannot be edited.
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
What am trying to say is that am pulling the json file yes which has this records
{"adminID": "ADMIN: 8","orgName": "3SIXTY HEALTH (PTY) LTD (ADMIN: 8)","orgActivateDate": "2018-06-06T00:00:00","orgExpiry": "2020-06-06T00:00:00","contact": "Dr N Mabuya","address": "PO BOX 10436 JOHANNESBURG 2000","tel": "011 353 0025","linkId": 8,"webAddress": "www.3Sixtyhealth.co.za"}
so for this record "webAddress": "www.3Sixtyhealth.co.za" i have set the column to be a url link but when i click on it instead of going to www.3Sixtyhealth.co.za it then redirect to http://172.10.10.231/resources/lookups/www.3Sixtyhealth.co.za so it puts the domain on the url which results to 404 as it cannot gets the page...
i need it to work as in the example
https://wpdatatables.com/documentation/column-features/url-link-columns/
Example Demo table with URL Link columnsHi again Pulego Tech
I see what you mean, but unfortunately that can't be done with JSON as a file source.
If you were using SQL query based tables, you could add a function to prepend the URL, like:
For URL link columns to work, you need to have the full URL path, including "http://" or "https://" before "www".
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
Thank you so much what helped was to append https:// using full url to the one i had that was just www. and it worked properly.
Good news, Pulego Tech
Thanks for letting me know it works properly now.
If you have any further questions or issues, please feel free to open a new ticket, and we'll gladly help.
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