link_to

Description

Return a html anchor to a given page or a content entry if the content entry owns a templatized page. The page is identified by its handle.

This tag requires Wagon 1.2+ and LocomotiveCMS 2.1+

Syntax

{% link_to <object_or_page_handle> %}

or

{% link_to <object_or_page_handle> %}
<HTML>
{% endlink_to %}

Example

{% link_to some-page %}
{% link_to about-us %}
  <i class="icon-info-sign"></i> {{ target.title }}
{% endlink_to %}

outputs

<a href="/path/to/some-page">Some page title</a>
<a href="/path/to/about-us">
  <i class="icon-info-sign"></i> About us
</a>
© 2024 LocomotiveCMS Terms of use Privacy Policy
Back to top