Hello I am wondering if it is possible to link content in a table.
For example say I have some source JSON like this
{ link: "/profile/admin"/, display_name: "Administrator", ... } Is it possible to use this source JSON and have one of the columns display the display_name value but have it linked to the link value?
You can combine values from different Columns with our "Transform Value" feature.
Just keep in mind that you need to use a String Column in order for this to work, and you need to manually construct the HTML for your Link in combination with the Field values.
That looks promising. Another thought I had would be to send the HTML I wanted displayed as the value? Is it possible to render a value as HTML in the table?
Also what about shortcodes? Can shortcodes be used and then rendered on display?
1. When it comes to rendering a value as HTML In the Table :
Our String Columns will render custom HTML, but I am not sure if i understood exactly what you need.
If you wish to show the underlying HTML, we currently don't have this as built-in option, so, for example, if you make a Custom Link or image, anything like that - Then our String Column Cell is going to render that HTML in the cell.
So, for example, if we input any Custom HTML link as a href, such as this in a cell :
<a href="https://wpdatatables.com/">Check out wpDataTables</a>
Let me know if that answers that question or you meant something else.
2. what about shortcodes? Can shortcodes be used and then rendered on display?
If you mean to insert other Plugin's Shortcodes inside our Table Cells, you can do that, if you activate this option, in Main Plugin Settings/Parse Shortcodes.
Hello I am wondering if it is possible to link content in a table.
For example say I have some source JSON like this
{
link: "/profile/admin"/,
display_name: "Administrator",
...
}
Is it possible to use this source JSON and have one of the columns display the display_name value but have it linked to the link value?
Hello,
You can combine values from different Columns with our "Transform Value" feature.
Just keep in mind that you need to use a String Column in order for this to work, and you need to manually construct the HTML for your Link in combination with the Field values.
Please check more details with our example here.
Let us know how it goes and if you have any additional questions.
Kind Regards,
Miloš Jovanović
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
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
That looks promising. Another thought I had would be to send the HTML I wanted displayed as the value? Is it possible to render a value as HTML in the table?
Also what about shortcodes? Can shortcodes be used and then rendered on display?
Hi Pathwise,
1. When it comes to rendering a value as HTML In the Table :
Our String Columns will render custom HTML, but I am not sure if i understood exactly what you need.
If you wish to show the underlying HTML, we currently don't have this as built-in option, so, for example, if you make a Custom Link or image, anything like that - Then our String Column Cell is going to render that HTML in the cell.
So, for example, if we input any Custom HTML link as a href, such as this in a cell :
That will get rendered in the String Cell of our Table as : Check out wpDataTables.
Let me know if that answers that question or you meant something else.
2. what about shortcodes? Can shortcodes be used and then rendered on display?
If you mean to insert other Plugin's Shortcodes inside our Table Cells, you can do that, if you activate this option, in Main Plugin Settings/Parse Shortcodes.
Let me know if you have any additional questions.
Kind Regards,
Miloš Jovanović
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
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