Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/heimrichhannot/contao-linkchecker-bundle
Simple link checker tool, that comes with an back end widget and LinkChecker class. Using php get_headers() function. Link test within widget is done via xhr call.
https://github.com/heimrichhannot/contao-linkchecker-bundle
Last synced: about 1 month ago
JSON representation
Simple link checker tool, that comes with an back end widget and LinkChecker class. Using php get_headers() function. Link test within widget is done via xhr call.
- Host: GitHub
- URL: https://github.com/heimrichhannot/contao-linkchecker-bundle
- Owner: heimrichhannot
- License: lgpl-3.0
- Created: 2018-03-07T14:35:16.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2024-02-15T09:49:44.000Z (10 months ago)
- Last Synced: 2024-09-18T13:52:41.180Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 76.2 KB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
![](https://img.shields.io/packagist/v/heimrichhannot/contao-linkchecker-bundle.svg)
![](https://img.shields.io/packagist/dt/heimrichhannot/contao-linkchecker-bundle.svg)
[![](https://img.shields.io/travis/heimrichhannot/contao-linkchecker-bundle/master.svg)](https://travis-ci.org/heimrichhannot/contao-linkchecker-bundle/)
[![](https://img.shields.io/coveralls/heimrichhannot/contao-linkchecker-bundle/master.svg)](https://coveralls.io/github/heimrichhannot/contao-linkchecker-bundle)# Contao link checker Bundle
Simple link checker tool, that comes with an back end widget and LinkChecker class.
Using php get_headers() function. Link test within widget is done via xhr call.![alt fieldpalette wizard](docs/img/linkchecker-be.jpg)
*LinkChecker back end widget*## Technical instructions
### Test links
If you want to test a single link, or multiple links, simply call:
```
\Contao\System::getContainer()->get('huh.linkchecker.manager.linkchecker')test('http://www.google.de');
\Contao\System::getContainer()->get('huh.linkchecker.manager.linkchecker')test(array('http://www.google.de', 'http://www.twitter.com'));
```### Back end widget / field
In back end mode there is a widget available called `linkChecker`;
Provide a valid `load_callback` within you DataContainer field configuration.```
//tl_sample.php'linkChecker' => array(
'label' => &$GLOBALS['TL_LANG']['tl_sample']['linkChecker'],
'inputType' => 'linkChecker',
'load_callback' => array(
array('MyClass', 'getLinkCheckerHtml'),
),
),
```You can return html-code with anchor tags, a single link or an array of links within your `load_callback`.
```
// MyClasspublic function getLinkCheckerHtml($varValue, \DataContainer $dc)
{
return 'Google'
}```