Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update placeholder path to /user/data/ #118

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ fontawesome:
* `admin_pages_only: true|false` toggles if admin should only process shortcodes for Grav pages
* `parser: wordpress|regex|regular` let's you configure the parser to use
* `include_default_shortcodes: true|false` toggle the inclusion of shortcodes provided by this plugin
* `custom_shortcodes:` the path to a directory where you can put your custom shortcodes (e.g. `/user/custom/shortcodes`)
* `custom_shortcodes:` the path to a directory where you can put your custom shortcodes (e.g. `/user/data/shortcodes`)
* `fontawesome.load: true|false` toggles if the fontawesome icon library should be loaded or not
* `fontawesome.url:` the CDN Url to use for fontawesome
* `v5:` Version 5 flag as it requires some additional logic
Expand Down Expand Up @@ -461,10 +461,10 @@ You can now use shortcodes in Twig templates and process them with the `|shortco
First, configure a directory from which custom shortcodes are loaded. Edit `user/config/plugins/shortcode-core.yaml` like follows (create it if it does not exist):

```yaml
custom_shortcodes: '/user/custom/shortcodes'
custom_shortcodes: '/user/data/shortcodes'
```

To add a custom shortcode, create a PHP file that defines a new shortcode class. For example, to create a shortcode for ~~strikethrough~~ text, save the following code as `user/custom/shortcodes/StrikeShortcode.php`:
To add a custom shortcode, create a PHP file that defines a new shortcode class. For example, to create a shortcode for ~~strikethrough~~ text, save the following code as `user/data/shortcodes/StrikeShortcode.php`:

```php
<?php
Expand Down Expand Up @@ -572,4 +572,4 @@ You can now display all available shortcodes by using the CLI command:

```shell
bin/plugin shortcode-core display
```
```
2 changes: 1 addition & 1 deletion blueprints.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ form:
type: text
label: Custom Shortcodes
help: The path to a location where you store custom shortcodes.
placeholder: '/user/custom/shortcodes'
placeholder: '/user/data/shortcodes'
size: large

css.notice_enabled:
Expand Down