• Stars
    star
    109
  • Rank 318,166 (Top 7 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 3 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Kirby block preview plugin to directly render block fields

Kirby Fields Block

Kirby block preview plugin to directly render block fields, allowing for inline editing.

Usage

Block definition

When creating a custom block in your blueprints, pass preview: fields to utilize this plugin

blockname:
  name: Block Name
  preview: fields # required
  wysiwyg: true # recommended
  fields:
    text:
      label: Text
      type: text

Setting wysiwyg: true prevents drawer from automatically opening when creating a new block.

Disable block title

You can disable the block title bar by passing label: false

blockname:
  name: Block Name
  preview: fields
  wysiwyg: true 
  label: false # disables block title bar
  fields:
    text:
      label: Text
      type: text
Example

Collapse/Expand block

You can collapse or expand the block preview by clicking on the arrow icon or double clicking the block title bar.

Notes

  • The block icon will appear in the title bar.
  • Currently does not support blocks with tabs.

Installation

composer require jg/kirby-fields-block
Other installation methods

Download

Download and copy this repository to /site/plugins/kirby-fields-block.

Git submodule

git submodule add https://github.com/jongacnik/kirby-fields-block.git site/plugins/kirby-fields-block

More Repositories

1

gr8

Customizable, functional css utilities
JavaScript
174
star
2

kirby2-index-field

Kirby field for displaying pages as a datatable
PHP
87
star
3

rploy

Minimal rsync deployment
JavaScript
78
star
4

kirby2-sirvy

πŸ”— Kirby Services API
PHP
54
star
5

monoapp

choo architecture without a renderer
JavaScript
53
star
6

kirby2-spad

πŸ“„ Kirby single page app json
PHP
47
star
7

kirby2-hidebar-field

Kirby field for hiding the sidebar
PHP
33
star
8

component-box

A little component cacher πŸ“¦
JavaScript
25
star
9

kirby-wrappers

Simple wrapper tags for Kirbytext
PHP
19
star
10

lilcss

βš— distill out css bloat
JavaScript
18
star
11

recsst

πŸ’¦ Micro CSS reset
JavaScript
15
star
12

choo-break

Trigger re-renders at breakpoints
JavaScript
13
star
13

plh

⬜️ base64 image placeholders
JavaScript
12
star
14

choo-reactive

auto-trigger app render on state change
JavaScript
11
star
15

monoapp-react

monoapp plugin to use React as a view layer
JavaScript
11
star
16

gr8-css

Functional css layout utilities
CSS
10
star
17

mbl

(Mad Basic Loader) loads dom images
JavaScript
10
star
18

bloog

Kinda static, choo markdown blog
JavaScript
8
star
19

gr8-util

A little function for generating functional css utilities
JavaScript
6
star
20

choo-shortcache

shortcut access to state.cache anywhere in your app
JavaScript
6
star
21

kirby-props

Helper to convert an array to a Kirby content object
PHP
5
star
22

quick-styles

Quickly create attributes and inline-styles
JavaScript
4
star
23

bam

app boiler plate
JavaScript
4
star
24

gr8-www

JavaScript
4
star
25

kirby2-createddate

Created Date Plugin
PHP
4
star
26

is-element

Returns true if dom element
JavaScript
4
star
27

routebeer

A little router for the browser for ajaxified sites.
JavaScript
3
star
28

Frank

πŸ‘΄πŸΌ A super-micro flat-file cms(ish) in a single PHP file for basic websites.
PHP
3
star
29

kirby2-redirects

PHP
3
star
30

sanitize-elements

sanitize-elements
JavaScript
3
star
31

kirby2-placeholder

PHP
3
star
32

gd-data

Fetch public google docs as structured data
JavaScript
3
star
33

kirby2-busted

PHP
3
star
34

preact-mood

🍷 V simple, V moody, V specific x-fade slideshow component
JavaScript
2
star
35

preact-lively

Preact onload/onunload component abstraction
JavaScript
2
star
36

imgload

Load image
JavaScript
2
star
37

sh4dr

JavaScript
2
star
38

kirby2-datastore

Kirby flat-file json datastore for large-ish quantities of data
PHP
2
star
39

linmap

Linear map
JavaScript
2
star
40

kirby2-favicon

PHP
2
star
41

bam-module

module boiler plate
JavaScript
2
star
42

streamjax

🚿 streaming pjax???
JavaScript
2
star
43

metronope

Sort of a metronome
JavaScript
2
star
44

kirby2-image-api

PHP
2
star
45

kirby2-pagetitle

PHP
2
star
46

etrig

Super simple programmatic DOM event trigger helper for the browser.
JavaScript
1
star
47

kirby2-opengraph

PHP
1
star
48

bwave

Command line notes
JavaScript
1
star
49

hb-slides

Make slide presentations with Harp.
CSS
1
star
50

kirby2-pagelist-field

PHP
1
star
51

interspace

Interspace is a jQuery plugin which allows for sub-pixel finesse over letter-spacing for typophiles.
JavaScript
1
star
52

dodgersdodger

JavaScript
1
star
53

fideo

Frame video player (or sprite sheet player)
JavaScript
1
star
54

mextend

mextend means microextend means MICRO EXTEND for keepin it real basic
JavaScript
1
star
55

xtra

X-Tra Contemporary Art Quarterly website
PHP
1
star
56

kirby2-static

PHP
1
star
57

kirby2-mongolite

Provides Kirby with a schemaless MongoLite database
PHP
1
star