Templating


Use the dubLink(entry) Twig function to output a short link in your templates:

Twig
{% set shortLink = dubLink(entry) %}
{% if shortLink %}
    <a href="{{ shortLink }}">{{ shortLink }}</a>
{% endif %}

Use the dubQr(entry) Twig function to output the short link's QR code image:

Twig
{% set qr = dubQr(entry) %}
{% if qr %}
    <img src="{{ qr }}" alt="QR code">
{% endif %}