Awilum
Постоялец
- Регистрация
- 11 Июл 2010
- Сообщения
- 161
- Реакции
- 120
- Автор темы
- #181
проверил.
в теме с bootstrap-blog идут неправильные наборы полей для блога. исправлю в ближайшее время, а пока вот рабочие варианты наборов полей
blog-post.yaml
blog.yaml
в теме с bootstrap-blog идут неправильные наборы полей для блога. исправлю в ближайшее время, а пока вот рабочие варианты наборов полей
blog-post.yaml
Код:
title: 'Blog Post'
default_field: title
hide: false
form:
tabs:
main:
title: Main
fields:
title: { title: admin_title, type: text, size: 12 }
summary: { title: admin_summary, type: html, size: 12 }
content: { title: admin_content, type: html, size: 12 }
tags: { title: admin_tags, type: tags, size: 12 }
settings:
title: admin_settings
fields:
general_heading: { title: admin_general, type: heading }
description: { title: admin_description, type: textarea, size: 12 }
template: { title: themes_admin_template, type: select_template, size: 4/12 }
visibility: { title: admin_visibility, type: select_visibility, size: 4/12 }
published_at: { title: admin_published_at, type: datetimepicker, size: 4/12 }
routable: { title: admin_routable, type: select_routable, size: 4/12 }
blog.yaml
Код:
title: Blog
default_field: title
hide: false
form:
tabs:
main:
title: Main
fields:
title: { title: admin_title, type: text, size: 12 }
entries_limit: { title: admin_entries_limit, type: text, size: 4/12 }
settings:
title: admin_settings
fields:
general_heading: { title: admin_general, type: heading }
description: { title: admin_description, type: textarea, size: 12 }
template: { title: admin_template, type: select_template, size: 4/12 }
visibility: { title: admin_visibility, type: select_visibility, size: 4/12 }
published_at: { title: admin_published_at, type: datetimepicker, size: 4/12 }
routable: { title: admin_routable, type: select_routable, size: 4/12 }
menu_heading: { title: admin_menu, type: heading }
menu_item_title: { title: admin_menu_item_title, type: text, size: 4/12 }
menu_item_url: { title: admin_menu_item_url, type: text, size: 4/12 }
menu_item_target: { title: admin_menu_item_target, type: select, options: { _self: _self, _blank: _blank, _parent: _parent, _top: _top }, size: 4/12 }
menu_item_order: { title: admin_menu_item_order, type: text, size: 4/12 }