Skip to content

Commit

Permalink
amend add ingredient editor
Browse files Browse the repository at this point in the history
  • Loading branch information
tvdeyen committed Apr 12, 2021
1 parent a16dc80 commit 1992e16
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 2 deletions.
1 change: 1 addition & 0 deletions config/locales/alchemy.en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,7 @@ en:
"Warning!": "Warning!"
content_definition_missing: "Warning: Content is missing its definition. Please check the elements.yml"
content_deprecated: "WARNING! This content is deprecated and will be removed soon. Please do not use it anymore."
ingredient_deprecated: "WARNING! This content is deprecated and will be removed soon. Please do not use it anymore."
element_definition_missing: "WARNING! Missing element definition. Please check your elements.yml file."
element_deprecated: "WARNING! This element is deprecated and will be removed soon. Please do not use it anymore."
page_definition_missing: "WARNING! Missing page layout definition. Please check your page_layouts.yml file."
Expand Down
38 changes: 38 additions & 0 deletions spec/dummy/config/alchemy/elements.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,44 @@
type: EssenceLink
hint: true

- name: all_you_can_eat_ingredients
hint: true
taggable: true
ingredients:
- role: text
type: Text
hint: true
- role: picture
type: Picture
hint: true
settings:
size: 1200x480
crop: true
- role: richtext
type: Richtext
hint: true
- role: select
type: Select
hint: true
settings:
select_values: [A, B, C]
- role: boolean
type: Boolean
hint: true
- role: date
type: Datetime
hint: true
- role: file
type: File
hint: true
- role: html
type: Html
hint: true
deprecated: true
- role: link
type: Link
hint: true

- name: <%= 'erb_' + 'element' %>
contents:
- name: text
Expand Down
14 changes: 12 additions & 2 deletions spec/dummy/config/alchemy/page_layouts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,17 @@
autogenerate: [header, article, download]

- name: everything
elements: [text, all_you_can_eat, gallery, right_column, left_column, old]
elements:
[
text,
all_you_can_eat,
gallery,
right_column,
left_column,
old,
all_you_can_eat_ingredients,
element_with_ingredients
]
autogenerate: [all_you_can_eat, right_column, left_column]

- name: news
Expand All @@ -38,7 +48,7 @@

- name: footer
elements:
- menu
- menu
layoutpage: true

- name: <%= 'erb_' + 'layout' %>
Expand Down
3 changes: 3 additions & 0 deletions spec/dummy/config/locales/alchemy.en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ en:
content_deprecation_notices:
all_you_can_eat:
essence_html: Old content is deprecated
ingredient_deprecation_notices:
all_you_can_eat_ingredients:
html: Old ingredient is deprecated
element_deprecation_notices:
old: Old element is deprecated

Expand Down

0 comments on commit 1992e16

Please sign in to comment.