File tree Expand file tree Collapse file tree 3 files changed +10
-2
lines changed
bobtemplates/plone/content_type Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,8 @@ Breaking changes:
1010
1111New features:
1212
13- - *add item here *
13+ - Add `icon_expr ` for `content_type`` view/edit actions and ask for "Content type icon" when adding a `content_type `.
14+ [petschki]
1415
1516Bug fixes:
1617
Original file line number Diff line number Diff line change @@ -19,6 +19,11 @@ dexterity_type_desc.help = Describe your content type in a view words.
1919dexterity_type_desc.required = False
2020dexterity_type_desc.default =
2121
22+ dexterity_type_icon_expr.question = Content type icon (See https://icons.getbootstrap.com/)
23+ dexterity_type_icon_expr.help =
24+ dexterity_type_icon_expr.required = False
25+ dexterity_type_icon_expr.default = puzzle
26+
2227dexterity_type_supermodel.question = Use XML Model
2328dexterity_type_supermodel.help = Use plone.supermodel, if not we will use zope.schema.
2429dexterity_type_supermodel.required = True
Original file line number Diff line number Diff line change 1414
1515 <property name =" allow_discussion" >False</property >
1616 <property name =" factory" >{{{ dexterity_type_name }}}</property >
17- <property name =" icon_expr" ></property >
17+ <property name =" icon_expr" >string:{{{ dexterity_type_icon_expr }}} </property >
1818 <property name =" link_target" ></property >
1919
2020 <!-- Hierarchy control -->
121121 i18n : attributes =" title"
122122 i18n : domain =" plone"
123123 title =" View"
124+ icon_expr =" string:toolbar-action/view"
124125 url_expr =" string:${object_url}"
125126 visible =" True" >
126127 <permission value =" View" />
136137 i18n : attributes =" title"
137138 i18n : domain =" plone"
138139 title =" Edit"
140+ icon_expr =" string:toolbar-action/edit"
139141 url_expr =" string:${object_url}/edit"
140142 visible =" True" >
141143 <permission value =" Modify portal content" />
You can’t perform that action at this time.
0 commit comments