Skip to content

kirby-deprecated-plugins/kirby-panel-checklists

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kirby Panel Checklists

Create automatic checklists inside the panel. You can test anything you want.

Screenshot

Blueprint

To see the field add the following into your blueprint.

checklist:
  label: My checklist
  type: checklist
  list: my_checklist

Usage

Now you need to setup some tests. It's done in your config file, or in a plugin.

return [
  'jenstornell.checklists.lists' => [
    'my_checklist' => [
      function($page) {
        return [
          'text' => 'Success on ' . $page->title(),
          'color' => 'green',
          'icon' => 'check'
        ];
      },
      function($page) {
        return [
          'text' => 'It is global',
          'color' => 'blue',
          'icon' => 'globe'
        ];
      },
    ]
  ]
];

Each function represents one test and one list item.

  • The available colors are black, blue, gray, green, orange, and red.
  • The available icons are the ones that are built into the panel.

Plugin support

With many items directly in the config file, it can be messy. To clean it up, you can wrap it inside a plugin.

A full list

function checklistsMyChecklist() {
  // Return the whole checklist array
}

Just one list item

function checklistsMyitem() {
  // Return just one list item
}

Checklist ideas

You can test any anything you want. Below are a few ideas.

  • SEO (Search Engine Optimization)
  • Environment/security
  • Content quality