1. Home
  2. Docs
  3. Index
  4. Data Publisher
  5. Hyperlinks

Hyperlinks

There are two ways to add a hyperlink to a publication:

  1. Add a hyperlink column
  2. 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.

More information about hyperlink columns…

Hyperlink column example

NameImageIn StockHyperlinkDescription
NameImageIn StockHyperlinkDescription

Dynamic hyperlink

A dynamic hyperlink is generated on the fly. All rows are using the same hyperlink with different arguments. Column arguments can be used to substitute column values on generation.

Before a dynamic hyperlink can be added to a publication it needs to be created in the Data Explorer. Follow the link below to learn how to add a dynamic hyperlink to a database table.

Adding dynamic hyperlinks…

Once a dynamic hyperlink is created, it can be added to a publication. Click on the Select button of your publication in the Data Publisher to add the hyperlink to your publication. That’s all!

Dynamic hyperlink example

ActionsNameImageIn StockDescription
ActionsNameImageIn StockDescription

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.

Was this article helpful to you? Yes No

Leave a Reply

Your email address will not be published. Required fields are marked *