1. Home
  2. Docs
  3. Index
  4. Data Publisher
  5. Adding hyperlinks

Adding 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

5 Replies to “Adding hyperlinks”

  1. Hi,

    I was wondering if it was possible to change the name of the hyperlink within the popup window, because it has currently “wpda_hyperlink_0” as a label.

    Thank you in advance for your time and answer.


    1. Hi Zerzer,

      That is a bug! While I am typing this message I am uploading version 3.6.5 which contains a fix for this issue. 🙂 You just need to update… 😉

      Thanks for reporting,

Leave a Reply

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