Fixed pagination and reordered blueprint options

This commit is contained in:
Pedro Moreno 2023-03-05 22:08:25 +01:00
parent d9abf598f5
commit 53bab9ebef
2 changed files with 46 additions and 17 deletions

View file

@ -70,21 +70,8 @@ form:
asc: FUTURE.ADMIN.BLOG.BLOG_CONTENT_ITEMS_ORDER_DIR_ASC
desc: FUTURE.ADMIN.BLOG.BLOG_CONTENT_ITEMS_ORDER_DIR_DESC
header.show_breadcrumbs:
header.content.pagination:
type: toggle
toggleable: true
label: FUTURE.ADMIN.BLOG.BLOG_CONTENT_ITEMS_BREADCRUMBS
highlight: 1
default: 1
options:
1: PLUGIN_ADMIN.ENABLED
0: PLUGIN_ADMIN.DISABLED
validate:
type: bool
header.show_pagination:
type: toggle
toggleable: true
label: FUTURE.ADMIN.BLOG.BLOG_CONTENT_ITEMS_PAGINATION
highlight: 1
default: 1
@ -96,7 +83,6 @@ form:
header.content.url_taxonomy_filters:
type: toggle
toggleable: true
label: FUTURE.ADMIN.BLOG.BLOG_CONTENT_ITEMS_URL_TAXONOMY_FILTERS
highlight: 1
default: 1
@ -128,4 +114,8 @@ form:
telegram: Telegram
use: keys
import@:
type: partials/blog-bits
context: blueprints://pages

View file

@ -0,0 +1,39 @@
form:
fields:
blog_config:
type: spacer
title: Configuration
header.blog_url:
type: text
toggleable: true
label: FUTURE.ADMIN.BLOG.BLOG_ROUTE
help: FUTURE.ADMIN.BLOG.BLOG_ROUTE_HELP
default: '/blog'
placeholder: '/blog'
size: medium
header.show_breadcrumbs:
type: toggle
toggleable: true
label: FUTURE.ADMIN.BLOG.BLOG_CONTENT_ITEMS_BREADCRUMBS
highlight: 1
default: 1
options:
1: PLUGIN_ADMIN.ENABLED
0: PLUGIN_ADMIN.DISABLED
validate:
type: bool
header.show_pagination:
type: toggle
toggleable: true
label: FUTURE.ADMIN.BLOG.BLOG_CONTENT_ITEMS_SHOWPAGINATION
highlight: 1
default: 1
options:
1: PLUGIN_ADMIN.ENABLED
0: PLUGIN_ADMIN.DISABLED
validate:
type: bool