From cfadbae23c74bb34d93c0dfd33d2dcc747580b10 Mon Sep 17 00:00:00 2001 From: Thomas Jakobi Date: Mon, 12 Feb 2024 18:17:15 +0100 Subject: [PATCH] Add a reference to the AnchorsAway extra --- en/building-sites/integrating-templates/named-anchor.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/en/building-sites/integrating-templates/named-anchor.md b/en/building-sites/integrating-templates/named-anchor.md index 8f8d938bd..7715e8c4a 100644 --- a/en/building-sites/integrating-templates/named-anchor.md +++ b/en/building-sites/integrating-templates/named-anchor.md @@ -32,7 +32,7 @@ To generate a link to a Resource with ID 12, while using a named anchor of "proh Alternatively, you could use a plugin to automatically prepend a link to the current resource before the actual anchor. -Put the following code into a new plugin, and on the System Events tab assign it to the "OnWebPagePrerender" event (based on [this post](http://forums.modx.com/thread/35800/plugin-anchorsaway?page=3#dis-post-199475)). +This can be achieved with the extra [AnchorsAway](https://extras.modx.com/package/anchorsaway) or with a custom plugin. For the custom plugin, you need to insert the following code into a new plugin and assign it to the "OnWebPagePrerender" event on the "System Events" tab. (based on [this post](http://forums.modx.com/thread/35800/plugin-anchorsaway?page=3#dis-post-199475)). ``` php if($modx->resource->get('id') !=$modx->config['site_start']) {