Skip to content
This repository was archived by the owner on May 23, 2026. It is now read-only.
This repository was archived by the owner on May 23, 2026. It is now read-only.

Button tag render #150

@khrizo

Description

@khrizo

I was trying to get <button></button> rendered in the front end when selecting a button plugin, instead I get <a href=""></a> with class="btn". I'm not sure if there is a better way to do this.

{% if instance.link_type == "btn" %}button{% else %}a href="{{ link }}"{% endif %} Opening tag
{% if instance.link_type == "btn" %} data-link="{{ link }}"{% endif %} Optional
{% if instance.link_type == "btn" %}button{% else %}a{% endif %} Closing tag

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions