Skip to content

Add link type information

Latest

Choose a tag to compare

@m2de m2de released this 22 Nov 14:50
· 3 commits to master since this release

The packages attempts to determine the type of link entered and returns this on the item through the linkType attribute. You can access this within the view using $item->linkType. This can be useful for adding icons to links for example.

Type Description
mailto An email link
tel A telephone link
download A link pointing to a download. You can customise the file extensions which are treated as downloads in the config.
external A link pointing off-site
internal A link pointing to a URL within your site