-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from steveparks/upgrade-to-v5
Upgrade to for Statamic 5.x, and provide as an addon
- Loading branch information
Showing
6 changed files
with
80 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
# Wikilinks ![Statamic v2](https://img.shields.io/badge/statamic-v2-blue.svg?style=flat-square) | ||
# Wikilinks ![Statamic v5](https://img.shields.io/badge/statamic-v5-blue.svg?style=flat-square) | ||
|
||
## Modifier | ||
|
||
Wikilinks is a simple modifier that seeks out any content wrapped in [braces] and automatically links it to other entries or pages with the same title (or other field of your choosing). | ||
Wikilinks is an add-on for Statamic 5.x that enables Wiki style [links] in the content of your site. | ||
|
||
It provides a simple modifier that seeks out any content wrapped in [braces] and automatically links it to other entries or pages with the same title (or other field of your choosing). | ||
|
||
``` | ||
{{ content | wikilinks }} | ||
``` | ||
|
||
See the Documentation for more details of usage. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ | ||
"name": "statamic/wikilinks", | ||
"autoload": { | ||
"psr-4": { | ||
"Statamic\\Wikilinks\\": "src" | ||
} | ||
}, | ||
"autoload-dev": { | ||
"psr-4": { | ||
"Statamic\\Wikilinks\\Tests\\": "tests" | ||
} | ||
}, | ||
"require": { | ||
"statamic/cms": "^5.0" | ||
}, | ||
"require-dev": { | ||
"orchestra/testbench": "^9.0" | ||
}, | ||
"config": { | ||
"allow-plugins": { | ||
"pixelfear/composer-dist-plugin": true | ||
} | ||
}, | ||
"extra": { | ||
"statamic": { | ||
"name": "Wikilinks", | ||
"description": "Wikilinks addon" | ||
}, | ||
"laravel": { | ||
"providers": [ | ||
"Statamic\\Wikilinks\\ServiceProvider" | ||
] | ||
} | ||
}, | ||
"minimum-stability": "dev", | ||
"prefer-stable": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
|
||
namespace Statamic\Wikilinks; | ||
|
||
use Statamic\Wikilinks\Modifiers\WikilinksModifier; | ||
use Statamic\Providers\AddonServiceProvider; | ||
|
||
class ServiceProvider extends AddonServiceProvider | ||
{ | ||
public function bootAddon() | ||
{ | ||
// | ||
} | ||
|
||
protected $modifiers = [ | ||
WikilinksModifier::class, | ||
]; | ||
} |