mirror of
https://github.com/silverstripe/silverstripe-externallinks.git
synced 2024-10-22 15:05:44 +00:00
update readme to reflect v4 upgrade work
This commit is contained in:
parent
7bce7dcb2f
commit
77eaa62efc
21
README.md
21
README.md
@ -1,6 +1,8 @@
|
||||
# External links
|
||||
|
||||
[](https://travis-ci.org/silverstripe/silverstripe-externallinks)
|
||||
[](https://travis-ci.org/silverstripe/silverstripe-externallinks)
|
||||
[](https://scrutinizer-ci.com/g/silverstripe/silverstripe-externallinks/?branch=master)
|
||||
[](https://codecov.io/gh/silverstripe/silverstripe-externallinks)
|
||||
|
||||
## Introduction
|
||||
|
||||
@ -12,15 +14,15 @@ The external links module is a task and ModelAdmin to track and to report on bro
|
||||
|
||||
## Requirements
|
||||
|
||||
* SilverStripe 3.1 +
|
||||
* SilverStripe ^4.0
|
||||
|
||||
**Note:** For a SilverStripe 3.x compatible version, please use [the 1.x release line](https://github.com/silverstripe/silverstripe-externallinks/tree/1.0).
|
||||
|
||||
## Features
|
||||
|
||||
* Add external links to broken links reports
|
||||
* Add a task to track external broken links
|
||||
|
||||
See the [changelog](CHANGELOG.md) for version history.
|
||||
|
||||
## Installation
|
||||
|
||||
1. If you have composer you can use `composer require silverstripe/externallinks:*`. Otherwise,
|
||||
@ -63,20 +65,17 @@ broken links.
|
||||
|
||||
## Queued job ##
|
||||
|
||||
If you have the queuedjobs module installed you can set the task to be run every so ofter
|
||||
Add the following yml config to config.yml in mysite/_config have the the task run once every day (86400 seconds)
|
||||
|
||||
CheckExternalLinks:
|
||||
Delay: 86400
|
||||
If you have the queuedjobs module installed you can set the task to be run every so often.
|
||||
|
||||
## Whitelisting codes ##
|
||||
|
||||
If you want to ignore or whitelist certain http codes this can be setup via IgnoreCodes in the config.yml
|
||||
file in mysite/_config
|
||||
file in `mysite/_config`
|
||||
|
||||
```yml
|
||||
CheckExternalLinks:
|
||||
Delay: 60
|
||||
IgnoreCodes:
|
||||
- 401
|
||||
- 403
|
||||
- 501
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user