Create field blueprints for pinning content in a list and showing on the home page.
This commit is contained in:
9
blueprints/fields/pinned.yml
Normal file
9
blueprints/fields/pinned.yml
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
type: fields
|
||||||
|
|
||||||
|
fields:
|
||||||
|
pinned:
|
||||||
|
label: Pinned
|
||||||
|
type: toggle
|
||||||
|
text:
|
||||||
|
- "No"
|
||||||
|
- "Yes"
|
||||||
10
blueprints/fields/show-on-home.yml
Normal file
10
blueprints/fields/show-on-home.yml
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
type: fields
|
||||||
|
|
||||||
|
fields:
|
||||||
|
showOnHome:
|
||||||
|
label: Show On Home
|
||||||
|
type: toggle
|
||||||
|
default: true
|
||||||
|
text:
|
||||||
|
- "No"
|
||||||
|
- "Yes"
|
||||||
@@ -25,6 +25,8 @@ Kirby::plugin(
|
|||||||
"fields/link-locations" => __DIR__ . "/blueprints/fields/link-locations.yml",
|
"fields/link-locations" => __DIR__ . "/blueprints/fields/link-locations.yml",
|
||||||
"fields/link-location" => __DIR__ . "/blueprints/fields/link-location.yml",
|
"fields/link-location" => __DIR__ . "/blueprints/fields/link-location.yml",
|
||||||
"fields/dates" => __DIR__ . "/blueprints/fields/dates.yml",
|
"fields/dates" => __DIR__ . "/blueprints/fields/dates.yml",
|
||||||
|
"fields/pinned" => __DIR__ . "/blueprints/fields/pinned.yml",
|
||||||
|
"fields/show-on-home" => __DIR__ . "/blueprints/fields/show-on-home.yml",
|
||||||
],
|
],
|
||||||
"snippets" => [
|
"snippets" => [
|
||||||
"navbar/primary" => __DIR__ . "/snippets/navbar/primary.php",
|
"navbar/primary" => __DIR__ . "/snippets/navbar/primary.php",
|
||||||
|
|||||||
Reference in New Issue
Block a user