Rename Offerings to Services
Torey Heinz
committed Feb 12, 2018
commit 7d2be559e84f7333b1ac93c27d86601d9323ba1f
Showing 7
changed files with
109 additions
and 183 deletions
app/content_types/offering_types.yml
+0
-77
| @@ | @@ -1,77 +0,0 @@ |
| - | # Human readable name of this type |
| - | name: Offering types |
| - | |
| - | # Lowercase, underscored handle used to access this type |
| - | slug: offering_types |
| - | |
| - | # Explanatory text displayed in the back-office |
| - | description: A description of the content type for the editors |
| - | |
| - | # 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 |
| - | |
| - | # Valid values: asc (ascending) and desc (descending). Set to asc by default. |
| - | # order_direction: asc |
| - | |
| - | # Specify a field slug to group entries by that field in the back-office. |
| - | # group_by: <your field> |
| - | |
| - | # Activate public 'create' API (e.g for a contact form) |
| - | # public_submission_enabled: false |
| - | |
| - | # Array of emails to be notified of new entries made with the public API |
| - | # public_submission_accounts: ['john@example.com'] |
| - | |
| - | # Control the display of the content type in the back-office. |
| - | # display_settings: |
| - | # seo: false # display the SEO tab for the content entries |
| - | # advanced: false # display the Advanced tab for the content entries |
| - | # position: 1 # position in the sidebar menu |
| - | # hidden: false # hidden for authors? |
| - | |
| - | # By default, the back-office displays the _label property (see label_field_name) of the content entry. This can be modified by writing your own Liquid template below: |
| - | # entry_template: '<a href="{{ link }}">{{ entry._label }}</a>' # The default template |
| - | |
| - | # A list describing each field |
| - | fields: |
| - | - title: # The lowercase, underscored name of the field |
| - | label: Title # Human readable name of the field |
| - | type: string |
| - | required: true |
| - | hint: Explanatory text displayed in the back office |
| - | localized: false |
| - | |
| - | - featured: |
| - | label: Featured? |
| - | type: boolean |
| - | |
| - | - featured_image: # The lowercase, underscored name of the field |
| - | label: Featured image # Human readable name of the field |
| - | type: file |
| - | required: false |
| - | hint: Explanatory text displayed in the back office |
| - | localized: false |
| - | |
| - | - 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) |
| - | |
| - | - offerings: # The lowercase, underscored name of the field |
| - | label: Offerings # Human readable name of the field |
| - | type: has_many |
| - | required: false |
| - | hint: Explanatory text displayed in the back office |
| - | localized: false # Define the slug of the target content type (eg. comments) |
| - | class_name: offerings |
| - | # Define the name of the field referring to Offering types in the target content type (eg. post) |
| - | inverse_of: offering_type |
| - | # If you want to manage the entries of the relationship directly from the source entry |
| - | ui_enabled: true |
| - | |
app/content_types/offerings.yml
+0
-74
| @@ | @@ -1,74 +0,0 @@ |
| - | # Human readable name of this type |
| - | name: Offerings |
| - | |
| - | # Lowercase, underscored handle used to access this type |
| - | slug: offerings |
| - | |
| - | # Explanatory text displayed in the back-office |
| - | description: A description of the content type for the editors |
| - | |
| - | # 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 |
| - | |
| - | # Valid values: asc (ascending) and desc (descending). Set to asc by default. |
| - | # order_direction: asc |
| - | |
| - | # Specify a field slug to group entries by that field in the back-office. |
| - | # group_by: <your field> |
| - | |
| - | # Activate public 'create' API (e.g for a contact form) |
| - | # public_submission_enabled: false |
| - | |
| - | # Array of emails to be notified of new entries made with the public API |
| - | # public_submission_accounts: ['john@example.com'] |
| - | |
| - | # Control the display of the content type in the back-office. |
| - | # display_settings: |
| - | # seo: false # display the SEO tab for the content entries |
| - | # advanced: false # display the Advanced tab for the content entries |
| - | # position: 1 # position in the sidebar menu |
| - | # hidden: false # hidden for authors? |
| - | |
| - | # By default, the back-office displays the _label property (see label_field_name) of the content entry. This can be modified by writing your own Liquid template below: |
| - | # entry_template: '<a href="{{ link }}">{{ entry._label }}</a>' # The default template |
| - | |
| - | # A list describing each field |
| - | fields: |
| - | - title: # The lowercase, underscored name of the field |
| - | label: Title # Human readable name of the field |
| - | type: string |
| - | required: true |
| - | hint: Explanatory text displayed in the back office |
| - | localized: false |
| - | |
| - | - featured_image: # The lowercase, underscored name of the field |
| - | label: Featured image # Human readable name of the field |
| - | type: file |
| - | required: false |
| - | hint: Explanatory text displayed in the back office |
| - | localized: false |
| - | |
| - | - 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) |
| - | - offering_type: |
| - | label: Offering Type |
| - | type: belongs_to |
| - | required: true |
| - | localized: false |
| - | class_name: offering_types |
| - | ui_enabled: true |
| - | |
| - | - projects: |
| - | label: Projects |
| - | type: many_to_many |
| - | class_name: projects |
| - | inverse_of: offerings |
| - | ui_enabled: true |
app/content_types/services.yml
+70
-0
| @@ | @@ -0,0 +1,70 @@ |
| + | # Human readable name of this type |
| + | name: Services |
| + | slug: services |
| + | description: Used to identify Featured and regular Services that Canvas Innovations offers |
| + | label_field_name: title |
| + | |
| + | order_by: title |
| + | |
| + | # Valid values: asc (ascending) and desc (descending). Set to asc by default. |
| + | # order_direction: asc |
| + | |
| + | # Specify a field slug to group entries by that field in the back-office. |
| + | # group_by: <your field> |
| + | |
| + | # Control the display of the content type in the back-office. |
| + | display_settings: |
| + | seo: false # display the SEO tab for the content entries |
| + | advanced: false # display the Advanced tab for the content entries |
| + | # position: 1 # position in the sidebar menu |
| + | # hidden: false # hidden for authors? |
| + | |
| + | # A list describing each field |
| + | fields: |
| + | - title: # The lowercase, underscored name of the field |
| + | label: Title # Human readable name of the field |
| + | type: string |
| + | required: true |
| + | hint: Explanatory text displayed in the back office |
| + | localized: false |
| + | |
| + | - featured: |
| + | label: Featured? |
| + | type: boolean |
| + | |
| + | - featured_image: # The lowercase, underscored name of the field |
| + | 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 |
| + | label: Brief # Human readable name of the field |
| + | type: text |
| + | required: false |
| + | hint: A brief intro to this Offering Type |
| + | 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) |
| + | |
| + | - projects: # The lowercase, underscored name of the field |
| + | label: Projects # Human readable name of the field |
| + | type: many_to_many |
| + | required: false |
| + | hint: What projects included this Service |
| + | localized: false # Define the slug of the target content type (eg. comments) |
| + | class_name: projects |
| + | # Define the name of the field referring to Offering types in the target content type (eg. post) |
| + | inverse_of: services |
| + | # If you want to manage the entries of the relationship directly from the source entry |
| + | ui_enabled: true |
| + | |
app/views/pages/services/content_type_template.liquid
+16
-0
| @@ | @@ -0,0 +1,16 @@ |
| + | --- |
| + | title: Service Template Page |
| + | content_type: services |
| + | --- |
| + | {% extends 'layouts/application' %} |
| + | {% block main %} |
| + | <h1>{{ service.title }}</h1> |
| + | {{ service.description }} |
| + | <h2>Projects</h2> |
| + | <ul> |
| + | {% for project in service.projects %} |
| + | <li><a href="{% path_to project %}">{{ project.title }}</a></li> |
| + | {% endfor %} |
| + | </ul> |
| + | {% endblock %} |
| + | |
data/offering_types.yml
+0
-16
| @@ | @@ -1,16 +0,0 @@ |
| - | - "Sample 1": |
| - | # featured_image: /samples/offering_types/yourfile.txt # Path to a file in the public/samples folder or to a remote and external file. |
| - | description: "Nam molestiae ipsa non iure sint architecto doloribus. Odio non quisquam consectetur delectus natus. Magnam iure aliquid fuga sequi harum qui et. Consequuntur autem eligendi explicabo ratione." |
| - | |
| - | - "Sample 2": |
| - | # featured_image: /samples/offering_types/yourfile.txt # Path to a file in the public/samples folder or to a remote and external file. |
| - | description: "Id vel expedita asperiores. Explicabo doloremque aliquid. Quod non itaque voluptate libero dicta. Aut quis impedit." |
| - | |
| - | - "Sample 3": |
| - | # featured_image: /samples/offering_types/yourfile.txt # Path to a file in the public/samples folder or to a remote and external file. |
| - | description: "Enim officia ipsa sunt. Officiis voluptatum doloribus. Error architecto asperiores ut voluptas veritatis. Velit doloribus saepe soluta aut." |
| - | |
| - | - "Sample 4": |
| - | # featured_image: /samples/offering_types/yourfile.txt # Path to a file in the public/samples folder or to a remote and external file. |
| - | description: "Suscipit ab sed commodi. Ducimus impedit unde quia alias. Aperiam hic est laudantium cumque accusamus. Qui rerum doloremque aut quas enim laborum." |
| - | |
data/offerings.yml
+0
-16
| @@ | @@ -1,16 +0,0 @@ |
| - | - "Sample 1": |
| - | # featured_image: /samples/offerings/yourfile.txt # Path to a file in the public/samples folder or to a remote and external file. |
| - | description: "Qui illum molestiae et commodi et. Nobis culpa enim vitae vel quisquam est. Aliquid ratione nihil." |
| - | |
| - | - "Sample 2": |
| - | # featured_image: /samples/offerings/yourfile.txt # Path to a file in the public/samples folder or to a remote and external file. |
| - | description: "Sapiente nemo quia qui. Magni repellat velit dignissimos et eos. Iste incidunt ipsum ut optio iusto. Dignissimos quia assumenda. Aut in molestiae at sequi quaerat deleniti." |
| - | |
| - | - "Sample 3": |
| - | # featured_image: /samples/offerings/yourfile.txt # Path to a file in the public/samples folder or to a remote and external file. |
| - | description: "Maiores dolore quos cum explicabo earum. Eius id ratione amet possimus iste. Quidem quia reiciendis error cumque." |
| - | |
| - | - "Sample 4": |
| - | # featured_image: /samples/offerings/yourfile.txt # Path to a file in the public/samples folder or to a remote and external file. |
| - | description: "Sint quasi ut et. Quis ipsa tenetur et. Autem vero quae adipisci magnam est totam. Eum vero fugit sit sunt iste. Veniam aliquid molestias vitae laborum." |
| - | |
data/services.yml
+23
-0
| @@ | @@ -0,0 +1,23 @@ |
| + | - "Commerical Sewing": |
| + | brief: "Nam molestiae ipsa non iure sint architecto doloribus" |
| + | featured: true |
| + | # featured_image: /samples/offering_types/yourfile.txt # Path to a file in the public/samples folder or to a remote and external file. |
| + | description: "Nam molestiae ipsa non iure sint architecto doloribus. Odio non quisquam consectetur delectus natus. Magnam iure aliquid fuga sequi harum qui et. Consequuntur autem eligendi explicabo ratione." |
| + | |
| + | - "Boat Enclosures": |
| + | # featured_image: /samples/offering_types/yourfile.txt # Path to a file in the public/samples folder or to a remote and external file. |
| + | brief: "Id vel expedita asperiores. Explicabo doloremque aliquid." |
| + | featured: true |
| + | description: "Id vel expedita asperiores. Explicabo doloremque aliquid. Quod non itaque voluptate libero dicta. Aut quis impedit." |
| + | projects: [sample-1, sample-2, sample-3] |
| + | |
| + | - "Boat Flooring": |
| + | # featured_image: /samples/offering_types/yourfile.txt # Path to a file in the public/samples folder or to a remote and external file. |
| + | brief: "Enim officia ipsa sunt. Officiis voluptatum doloribus." |
| + | featured: true |
| + | description: "Enim officia ipsa sunt. Officiis voluptatum doloribus. Error architecto asperiores ut voluptas veritatis. Velit doloribus saepe soluta aut." |
| + | |
| + | - "Sample 4": |
| + | # featured_image: /samples/offering_types/yourfile.txt # Path to a file in the public/samples folder or to a remote and external file. |
| + | description: "Suscipit ab sed commodi. Ducimus impedit unde quia alias. Aperiam hic est laudantium cumque accusamus. Qui rerum doloremque aut quas enim laborum." |
| + | |