Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/skeeks-semenov/yii2-external-links
AutoCorrect external links after rendering html page
https://github.com/skeeks-semenov/yii2-external-links
skeeks skeeks-cms yii yii2 yii2-cms yii2-extension
Last synced: 4 months ago
JSON representation
AutoCorrect external links after rendering html page
- Host: GitHub
- URL: https://github.com/skeeks-semenov/yii2-external-links
- Owner: skeeks-semenov
- License: bsd-3-clause
- Created: 2016-02-10T19:58:30.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2024-04-17T07:50:31.000Z (10 months ago)
- Last Synced: 2024-10-01T00:23:45.821Z (4 months ago)
- Topics: skeeks, skeeks-cms, yii, yii2, yii2-cms, yii2-extension
- Language: PHP
- Homepage: https://skeeks.com
- Size: 25.4 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
AutoCorrect external links after rendering html page
===================================[![Latest Stable Version](https://img.shields.io/packagist/v/skeeks/yii2-external-links.svg)](https://packagist.org/packages/skeeks/yii2-external-links)
[![Total Downloads](https://img.shields.io/packagist/dt/skeeks/yii2-external-links.svg)](https://packagist.org/packages/skeeks/yii2-external-links)Installation
------------The preferred way to install this extension is through [composer](http://getcomposer.org/download/).
Either run
```
php composer.phar require --prefer-dist skeeks/yii2-external-links "*"
```or add
```
"skeeks/yii2-external-links": "*"
```How to use (simple)
----------```php
//App config
[
'bootstrap' => ['externalLinks'],'components' =>
[
//....
'externalLinks' =>
[
'class' => 'skeeks\yii2\externalLinks\ExternalLinksComponent',
],
//....
],'modules' =>
[
//....
'externallinks' =>
[
'class' => 'skeeks\yii2\externalLinks\ExternalLinksModule',
],
//....
]
]```
How to use (advanced)
----------```php
//App config
[
'bootstrap' => ['externalLinks'],'components' =>
[
//....
'externalLinks' =>
[
'class' => 'skeeks\yii2\externalLinks\ExternalLinksComponent',//Additional
'enabled' => true,
'noReplaceLocalDomain' => true,
'backendRoute' => '/externallinks/redirect/redirect',
'backendRouteParam' => 'url',
'enabledB64Encode' => true,
'noReplaceLinksOnDomains' => [
'site1.ru',
'www.site1.ru',
'site2.ru',
],
],
'urlManager' =>
[
'rules' =>
[
//Rewriting the standard route
//And add robots.txt Disallow: /~*
'~skeeks-redirect' => '/externallinks/redirect/redirect',
]
]
//....
],'modules' =>
[
//....
'externallinks' =>
[
'class' => 'skeeks\yii2\externalLinks\ExternalLinksModule',
],
//....
]
]```
##Screenshot
[![SkeekS CMS admin panel](http://marketplace.cms.skeeks.com/uploads/all/b3/c5/f6/b3c5f64a07798c80f78c0de102a4cf14.png)](http://marketplace.cms.skeeks.com/uploads/all/b3/c5/f6/b3c5f64a07798c80f78c0de102a4cf14.png)___
> [![skeeks!](https://skeeks.com/img/logo/logo-no-title-80px.png)](https://skeeks.com)
SkeekS CMS (Yii2) — quickly, easily and effectively!
[skeeks.com](https://skeeks.com) | [cms.skeeks.com](https://cms.skeeks.com)