Skip to content

Usage

How it works

This MODX extra fixes anchor links in a MODX Revolution installation that uses a base attribute. The plugin searches for href="#<whatever>" strings in html attributes and replaces the anchor link with relative link to the current resource followed by the anchor. The original href attribute content can be added as data-anchor attribute by option.

System Settings

AnchorsAway uses the following system settings in the namespace anchorsaway:

Setting Description Default
add_data_anchor Add data-anchor attribute to the link. No
debug Log debug information in the MODX error log. No