There are two ways to add a hyperlink to a data table:
- Add a hyperlink column
- Add a dynamic hyperlink
Hyperlink column #
A hyperlink column is a table column which is physically stored in the database. With this type of hyperlink you can add a specific hyperlink to each table row. The plugin generates the necessary features to support hyperlink editing in the data entry form. You can enter a label, url and target. An example could be a link to product specifications on the site of the product supplier.
Inline demo (try column hyperlink) #
| Name | Image | In Stock | Hyperlink | Description |
|---|---|---|---|---|
| Name | Image | In Stock | Hyperlink | Description |
Dynamic hyperlink #
A dynamic hyperlink is a computed column generated on the fly. Column variables can be added to a hyperlink and are substituted on generation.
Inline demo (try column actions) #
| Actions | Name | Image | In Stock | Description |
|---|---|---|---|---|
| Actions | Name | Image | In Stock | Description |
This example uses the following HTML to create the actions links
<a href="javascript:alert('Action not implemented for $$product_name$$')" class="dashicons dashicons-plus-alt"></a>
<a href="javascript:alert('Action not implemented for $$product_name$$')" class="dashicons dashicons-dismiss"></a>
<a href="javascript:alert('Action not implemented for $$product_name$$')" class="dashicons dashicons-admin-generic"></a>
Notice that variable $$product_name$$ is substituted with the column value of each row.