Skip to content

Commit

Permalink
Use admin helper methods to get the new page defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
flaviocopes committed Oct 1, 2015
1 parent 16dd2fe commit 198046a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions system/blueprints/pages/new.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ form:
label: PLUGIN_ADMIN.PARENT_PAGE
classes: fancy
@data-options: '\Grav\Common\Page\Pages::parents'
@data-default: '\Grav\Plugin\admin::route'
@data-default: '\Grav\Plugin\admin::getLastPageRoute'
options:
'/': PLUGIN_ADMIN.DEFAULT_OPTION_ROOT
validate:
Expand All @@ -43,8 +43,8 @@ form:
classes: fancy
label: PLUGIN_ADMIN.PAGE_FILE
help: PLUGIN_ADMIN.PAGE_FILE_HELP
default: default
@data-options: '\Grav\Common\Page\Pages::types'
@data-default: '\Grav\Plugin\admin::getLastPageName'
validate:
required: true

Expand Down

0 comments on commit 198046a

Please sign in to comment.