Skip to content

Make new pages, created with the Kirby Admin Panel, visible by default

License

Notifications You must be signed in to change notification settings

thomasflad/kirby-auto-publish

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Kirby Auto Publish

This plugin extends Kirby with the possibility to auto publish pages that are created with the Kirby Admin Panel.

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.

Version compatibility

  • version 1.* is compatible with Kirby 2.1
  • version 2.* is compatible with Kirby 2.2

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'));

Known issues

The plugin can conflict with other code or plugins that use the panel.page.create hook.


This plugin is brought to you by Kirby Project Hub

About

Make new pages, created with the Kirby Admin Panel, visible by default

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%