-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5824886
commit 3731c3e
Showing
1 changed file
with
23 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Kirby Auto Publish | ||
|
||
By default, new pages are invisible on creation. This plugin allows you to make all new pages or certain types of pages visible by default. | ||
|
||
**Requires** : Kirby 2.1 | ||
|
||
## Installation | ||
|
||
Copy the `site/plugins/autopublish` directory to your `site/plugins/` directory. | ||
|
||
## Usage | ||
|
||
If you include the plugin without configuration all new pages created in the Admin Panel will be visible by default. | ||
|
||
If you want to limit the auto publishing to certain types (templates) of pages, you can define those by configuring the `autopublish.templates` option to the array of page templates you want to make visible by default. | ||
|
||
i.e. if you wish to make all pages using the "project" and "item" template visible by default, add the following line to your `site/config/config.php` file : | ||
|
||
``` | ||
c::set('autopublish.templates', array('project', 'item')); | ||
``` | ||
|
||
|