Updates Content Types
Torey Heinz
committed Mar 29, 2018
commit fcedced48e0c6c3caf77d614e2edaa382c6b8da9
Showing 6
changed files with
38 additions
and 28 deletions
app/content_types/customer_messages.yml
+4
-9
| @@ | @@ -1,20 +1,20 @@ |
| # Human readable name of this type | |
| - | name: Customer messages |
| + | name: Customer Messages |
| # Lowercase, underscored handle used to access this type | |
| slug: customer_messages | |
| # Explanatory text displayed in the back-office | |
| - | description: A description of the content type for the editors |
| + | description: This is where the submissions form the Contact Form live. |
| # Slug of field used to identify entries by default, such as the title | |
| label_field_name: name | |
| # Valid values: manually, created_at, updated_at, or the slug of any field | |
| - | order_by: manually |
| + | order_by: created_at |
| # Valid values: asc (ascending) and desc (descending). Set to asc by default. | |
| - | # order_direction: asc |
| + | order_direction: desc |
| # Specify a field slug to group entries by that field in the back-office. | |
| # group_by: <your field> | |
| @@ | @@ -41,34 +41,29 @@ fields: |
| label: Name # Human readable name of the field | |
| type: string | |
| required: true | |
| - | hint: Explanatory text displayed in the back office |
| localized: false | |
| - email: # The lowercase, underscored name of the field | |
| label: Email # Human readable name of the field | |
| type: string | |
| required: true | |
| - | hint: Explanatory text displayed in the back office |
| localized: false | |
| - phone: # The lowercase, underscored name of the field | |
| label: Phone # Human readable name of the field | |
| type: string | |
| required: true | |
| - | hint: Explanatory text displayed in the back office |
| localized: false | |
| - address: # The lowercase, underscored name of the field | |
| label: Address # Human readable name of the field | |
| type: string | |
| required: true | |
| - | hint: Explanatory text displayed in the back office |
| localized: false | |
| - message: # The lowercase, underscored name of the field | |
| label: Message # Human readable name of the field | |
| type: text | |
| required: true | |
| - | hint: Explanatory text displayed in the back office |
| localized: false | |
| # text_formatting: html # html (uses rich text editor), markdown or text (uses plain text editor) | |
app/content_types/images.yml
+10
-10
| @@ | @@ -5,13 +5,13 @@ name: Images |
| slug: images | |
| # Explanatory text displayed in the back-office | |
| - | description: A description of the content type for the editors |
| + | description: Images can be realated to Services or Projects |
| # Slug of field used to identify entries by default, such as the title | |
| label_field_name: title | |
| # Valid values: manually, created_at, updated_at, or the slug of any field | |
| - | order_by: manually |
| + | order_by: title |
| # Valid values: asc (ascending) and desc (descending). Set to asc by default. | |
| # order_direction: asc | |
| @@ | @@ -40,7 +40,13 @@ fields: |
| - title: # The lowercase, underscored name of the field | |
| label: Title # Human readable name of the field | |
| type: string | |
| - | hint: Explanatory text displayed in the back office |
| + | hint: Describe why someone should care about this Image |
| + | localized: false |
| + | |
| + | - file: # The lowercase, underscored name of the field |
| + | label: File # Human readable name of the field |
| + | type: file |
| + | required: true |
| localized: false | |
| - services: | |
| @@ | @@ -55,17 +61,11 @@ fields: |
| class_name: projects | |
| inverse_of: images | |
| - | - file: # The lowercase, underscored name of the field |
| - | label: File # Human readable name of the field |
| - | type: file |
| - | required: true |
| - | hint: Explanatory text displayed in the back office |
| - | localized: false |
| - | |
| - category: | |
| label: Category | |
| type: select | |
| required: false | |
| + | hint: Mostly used to identify Before and After pictures for Projects |
| select_options: ['Before', 'After', 'Service'] | |
app/content_types/project_requests.yml
+3
-3
| @@ | @@ -5,16 +5,16 @@ name: Project Requests |
| slug: project_requests | |
| # Explanatory text displayed in the back-office | |
| - | description: A description of the content type for the editors |
| + | description: This is where the submissions form the Estimate form live. |
| # Slug of field used to identify entries by default, such as the title | |
| label_field_name: name | |
| # Valid values: manually, created_at, updated_at, or the slug of any field | |
| - | order_by: manually |
| + | order_by: created_at |
| # Valid values: asc (ascending) and desc (descending). Set to asc by default. | |
| - | # order_direction: asc |
| + | order_direction: desc |
| # Specify a field slug to group entries by that field in the back-office. | |
| # group_by: <your field> | |
app/content_types/projects.yml
+1
-1
| @@ | @@ -1,7 +1,7 @@ |
| # Human readable name of this type | |
| name: Projects | |
| slug: projects | |
| - | description: Complteted Projects with before and After pictures |
| + | description: Completed Projects with Before and After pictures |
| label_field_name: title | |
| order_by: manually | |
app/content_types/services.yml
+7
-5
| @@ | @@ -1,7 +1,7 @@ |
| # Human readable name of this type | |
| name: Services | |
| slug: services | |
| - | description: Used to identify Featured and regular Services that Canvas Innovations offers |
| + | description: Used to identify Featured and Standard Services that Canvas Innovations offers |
| label_field_name: title | |
| order_by: manually | |
| @@ | @@ -25,7 +25,6 @@ fields: |
| label: Title # Human readable name of the field | |
| type: string | |
| required: true | |
| - | hint: Explanatory text displayed in the back office |
| localized: false | |
| - featured: | |
| @@ | @@ -36,7 +35,6 @@ fields: |
| label: Featured image # Human readable name of the field | |
| type: file | |
| required: false | |
| - | hint: Explanatory text displayed in the back office |
| localized: false | |
| - brief: # The lowercase, underscored name of the field | |
| @@ | @@ -47,12 +45,10 @@ fields: |
| localized: false | |
| # text_formatting: html # html (uses rich text editor), markdown or text (uses plain text editor) | |
| - | |
| - description: # The lowercase, underscored name of the field | |
| label: Description # Human readable name of the field | |
| type: text | |
| required: false | |
| - | hint: Explanatory text displayed in the back office |
| localized: false | |
| # text_formatting: html # html (uses rich text editor), markdown or text (uses plain text editor) | |
| @@ | @@ -61,3 +57,9 @@ fields: |
| type: many_to_many | |
| class_name: images | |
| inverse_of: services | |
| + | |
| + | - testimonials: |
| + | label: Testimonials |
| + | type: many_to_many |
| + | class_name: testimonials |
| + | inverse_of: services |
app/content_types/testimonials.yml
+13
-0
| @@ | @@ -51,3 +51,16 @@ fields: |
| hint: Explanatory text displayed in the back office | |
| localized: false | |
| # text_formatting: html # html (uses rich text editor), markdown or text (uses plain text editor) | |
| + | |
| + | - services: |
| + | label: Services |
| + | type: many_to_many |
| + | class_name: services |
| + | inverse_of: testimonials |
| + | |
| + | - projects: |
| + | label: Project |
| + | type: many_to_many |
| + | class_name: projects |
| + | inverse_of: testimonials |
| + | |