Skip to content

Commit

Permalink
Modular blueprint update
Browse files Browse the repository at this point in the history
  • Loading branch information
rhukster committed Jan 10, 2018
1 parent 72abab6 commit 4677bad
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 25 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# v1.4.0-rc.1
## mm/dd/2017

1. [](#improved)
* Made `modular` blueprint more flexible
1. [](#bugfix)
* Date ordering should always be numeric [#1810](https://github.com/getgrav/grav/issues/1810)

Expand Down
41 changes: 16 additions & 25 deletions system/blueprints/pages/modular.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
title: PLUGIN_ADMIN.MODULAR
@extends:
type: default
context: blueprints://pages
'@extends': default

form:
fields:
Expand All @@ -13,35 +11,28 @@ form:
content:
fields:

modular_title:
type: spacer
title: Modular Setup

header.content.items:
type: select
type: text
label: PLUGIN_ADMIN.ITEMS
default: '@self.modular'
options:
'@self.modular': Modular Children
size: medium

header.content.order.by:
type: select
type: text
label: PLUGIN_ADMIN.ORDER_BY
default: date
options:
folder: PLUGIN_ADMIN.FOLDER
title: PLUGIN_ADMIN.TITLE
date: PLUGIN_ADMIN.DATE
default: PLUGIN_ADMIN.DEFAULT
placeholder: date
help:
size: small

header.content.order.dir:
type: select
type: text
label: PLUGIN_ADMIN.ORDER
default: desc
options:
asc: PLUGIN_ADMIN.ASCENDING
desc: PLUGIN_ADMIN.DESCENDING

header.process:
type: ignore
content:
type: ignore
header.media_order:
type: ignore
help: '"desc" or "asc" are valid values'
placeholder: desc
size: small


0 comments on commit 4677bad

Please sign in to comment.