Adds a task to find broken links in module source code, as well as a model admin for the results
The check source URLs module is to review the source code in a module or a directory to find any broken links.
When the module is first installed it obtains a list of top level domains from
http://data.iana.org/TLD/tlds-alpha-by-domain.txt
To review a module a dev task has been created which can be run to check urls in the source code of
php, JavaScript, SilverStripe templates and MarkDown files.
It need the php module curl to be installed and it records all the suspected broken urls it finds in a table.
The list it returns can not be guaranteed but it gives a good indication of broken urls.
* Kirk Mayo kirk (at) silverstripe (dot) com
* SilverStripe 3.0 +
/dev/build
to rebuild the database.Run the following task http://path.to.silverstripe/BrokenScriptsURLS?module=framework to check your site for
broken source code links.
To ignore certain directories add the param excludeDir=/directory/to/exclude as per the example below
By default certain domains are skipped like example.com and mysite.com to see or edit the full list view the
skipDomains property of the BrokenScriptsURL class in code/tasks/BrokenScriptsURLS.php
To disable the Broken URLs menu add the following code to mysite/_config.php
CMSMenu::remove_menu_item('BrokenURLModelAdmin');
Add support for Punycode top level domains.
Add multi language support
Module rating system helping users find modules that are well supported. For more on how the rating system works visit Module standards
Score not correct? Let us know there is a problem