123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212 |
- title: Pages
- description: Manage your Grav Pages in Flex.
- type: flex-objects
- extends@:
- type: default
- context: blueprints://pages
- config:
-
- admin:
-
- router:
- path: '/pages'
-
- permissions:
-
- admin.pages:
- type: crudl
- label: Pages
- admin.configuration.pages:
- type: default
- label: Pages Configuration
-
- menu:
- list:
- route: '/pages'
- title: PLUGIN_ADMIN.PAGES
- icon: fa-file-text
- authorize: ['admin.pages.list', 'admin.super']
- priority: 5
-
- template: pages
-
- actions:
- list: true
- create: true
- read: true
- update: true
- delete: true
-
- list:
-
- fields:
- published:
- width: 8
- alias: header.published
- visible:
- width: 8
- field:
- label: Visible
- type: toggle
- menu:
- link: edit
- alias: header.menu
- full_route:
- field:
- label: Route
- type: text
- link: edit
- sort:
- field: key
- name:
- width: 8
- field:
- label: Type
- type: text
- translations:
- width: 8
- field:
- label: Translations
- type: text
-
- options:
-
- per_page: 20
-
- order:
- by: key
- dir: asc
-
- buttons:
- back:
- icon: reply
- title: PLUGIN_ADMIN.BACK
- add:
- icon: plus
- label: PLUGIN_ADMIN.ADD
- edit:
- title:
- template: "{% if object.root %}Root <small>( <root> ){% else %}{{ (form.value('header.title') ?? form.value('folder'))|e }} <small>( {{ (object.getRoute().toString(false) ?: '/')|e }} )</small>{% endif %}"
-
- buttons:
- back:
- icon: reply
- title: PLUGIN_ADMIN.BACK
- preview:
- icon: eye
- title: PLUGIN_ADMIN.PREVIEW
- add:
- icon: plus
- label: PLUGIN_ADMIN.ADD
- copy:
- icon: copy
- label: PLUGIN_ADMIN.COPY
- move:
- icon: arrows
- label: PLUGIN_ADMIN.MOVE
- delete:
- icon: close
- label: PLUGIN_ADMIN.DELETE
- save:
- icon: check
- label: PLUGIN_ADMIN.SAVE
-
- preview:
- enabled: true
-
- configure:
- authorize: 'admin.configuration.pages'
-
- site:
-
- hidden: true
- templates:
- collection:
-
- paths:
- - 'flex/{TYPE}/collection/{LAYOUT}{EXT}'
- object:
-
- paths:
- - 'flex/{TYPE}/object/{LAYOUT}{EXT}'
- defaults:
-
- type: pages
-
- layout: default
-
- filter:
- - withPublished
-
- data:
- object: 'Grav\Common\Flex\Types\Pages\PageObject'
- collection: 'Grav\Common\Flex\Types\Pages\PageCollection'
- index: 'Grav\Common\Flex\Types\Pages\PageIndex'
- storage:
- class: 'Grav\Common\Flex\Types\Pages\Storage\PageStorage'
- options:
- formatter:
- class: 'Grav\Framework\File\Formatter\MarkdownFormatter'
- folder: 'page://'
-
- indexed: true
-
- ordering:
- storage_key: ASC
- search:
-
- options:
- contains: 1
-
- fields:
- - key
- - menu
- - title
- - name
- blueprints:
- configure:
- fields:
- import@:
- type: configure/compat
- context: blueprints://flex
- form:
- fields:
- lang:
- type: hidden
- value: ''
- tabs:
- fields:
- security:
- type: tab
- title: PLUGIN_ADMIN.SECURITY
- import@:
- type: partials/security
- context: blueprints://pages
|