• MODX.com

    74 downloads

Link Strategy

Link Strategy is an extra by matdave, first released on 2023-06-09.

Package Description

This is a simple link strategy extra for MODX Revolution 3.x. It allows you to review the links used on your website, and find orphaned pages, link text variations, and external links.

Usage/Installation Instructions

Install via package management. To generate the initial link stats, go to the Link Strategy manager page and click on the "Regenerate Links" button. This will take a while, depending on the size of your site. If this fails, you may need to manually run the included indexing script via CLI or cron. ## Manual Link Indexing If the automatic indexing fails, you can run the included indexing script manually. This is useful if you have a large site, or if you want to run the indexing script via cron. To run the indexing script, you need to SSH into your server and run the following command: php /path/to/your/modx/core/components/linkstrategy/cron/generate.2x.php Or for MODX 3.x Versions: php /path/to/your/modx/core/components/linkstrategy/cron/generate.3x.php Once completed, this will output the number of resources indexed. You can then go to the Link Strategy manager page and verify it is showing the newly discovered links. ## Automatic Indexing In general, the automatic indexing should work fine. It renders a page on save, and scans it for links. However, the links can change if you make adjustments to a template or chunk in your site that would affect the frontend links. If this happens, you can run the indexing script manually to update the links, or go to the manager page and click "Regenerate Links". ## Disable Automatic Indexing Due to the way automatic indexing works, it may slow down the save event on your site depending on how your site is set up. If you want to disable automatic indexing, you can do so by setting the `linkstrategy.allow_regenerate_onsave` system setting to `No`. It is recommended you then run the indexing script manually via cron. ## Disable "Regenerate Links" Button In the event you have a large site that consistently fails to generate links with the provided button. You can disable it in system settings. This will prevent the button from showing up in the manager page. It is recommended you then run the indexing script manually via cron. To disable the button, set the system setting `linkstrategy.allow_regenerate_button` to `No`.

Details

Developer(s)
matdave
Released
2023-06-09
First seen
2023-06-09
License
GPLv2
Supported databases
Minimum MODX Requirement
2.6

Link Strategy Releases

Vendor Signature Released on
MODX.com 1.1.4-pl 2023-06-09 (1 year ago)
MODX.com 1.1.2-pl 2023-02-07 (1 year ago)
MODX.com 1.1.0-pl 2023-01-25 (1 year ago)
MODX.com 1.0.0-pl 2022-11-29 (1 year ago)

We've also seen 1 unverified versions of Link Strategy in use, but don't list those as we've been unable of confirming they are official releases from an official source.