This one’s on the house
Compatibility: | EE2 |
---|---|
Latest release: | 1.0.0 (released 2011-03-01) |
Licensing: | CC Attribution-Share Alike 3.0 |
Compatibility & Requirements
Low Link requires EE2.1.3+
Installation
- Download and unzip
- Copy the low_link folder to your
system/expressionengine/third_party
directory - All done!
Template tags
Apply tag
Parameter | Description |
---|---|
site |
Which site(s) is/are used to look up the entries. Defaults to the current site. |
channel |
Channel to filter by. |
field |
Which field is used for matching. Defaults to title . |
tag |
Which html tag is generated around the found entry. Defaults to a . |
tag:[attribute] |
You can set any amount of tag attributes, for example: tag:href or tag:class , which are applied to the given tag.
Inside these attributes, you can use two markers: %%entry_id%% and %%url_title%% , which are replaced by the matching entry. |
{exp:low_link:apply channel="thesaurus" tag:href="/thesaurus/%%url_title%%/" tag:class="low_link word-%%entry_id%%"}
Lorem ipsum dolor [[sit amet]], adipisicing elit, est [[laborum | something else]].
{/exp:low_link:apply}
This will output:
Lorem ipsum dolor <a href="/thesaurus/sit-amet" class="low_link word-42">sit amet</a>, adipisicing elit, est <a href="/thesaurus/laborum" class="low_link word-45">something else</a>.