Skip to content

Render: alter link, add attribute

Plugin ID: eca_render_alter_link_add_attribute

Available since: 3.0.3

Alter a link element by adding an attribute.

Fields

Name of attribute — config key: key

The name of the attribute to add to the link. Leave empty to not add an attribute when the attributes will be reset.
This field supports tokens.

Type: textfield · Required: no · Default: empty string

Value of attribute — config key: value

The value of the attribute to add to the link. Leave empty to not add an attribute when the attributes will be reset.
This field supports tokens.

Type: textfield · Required: no · Default: empty string

Reset attributes — config key: reset

If checked, the currently set attributes will be removed before adding the new attribute. Note that the class and the title attributes will not be reset.

Type: checkbox · Required: no · Default: false