morethanthemes / extra_product
Adds a product content type.
Installs: 10
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Type:drupal-recipe
Requires
- drupal/core: >=10.4 || ^11
- drupal/entity_reference_revisions: ^1.12
- drupal/fontawesome: ^3.0
- drupal/image_widget_crop: ^3.0
- drupal/paragraphs: ^1.19
- drupal/video_embed_field: ^3.0@beta
- morethanthemes/extra_paragraphs: ^1.0
- morethanthemes/extra_view_modes: ^1.0
README
Description
This Drupal recipe adds a "Product" content type to your site. It provides a comprehensive set of fields and configurations to manage products effectively.
Requirements
This recipe requires the following Drupal modules and packages:
- Drupal Core (>=10.4 || ^11)
- Entity Reference Revisions (
drupal/entity_reference_revisions
) - Font Awesome (
drupal/fontawesome
) - Image Widget Crop (
drupal/image_widget_crop
) - Paragraphs (
drupal/paragraphs
) - Video Embed Field (
drupal/video_embed_field
) - Extra Paragraphs
- Extra View Modes
The recipe will automatically install the following modules if they are not already enabled:
entity_reference_revisions
file
image
image_widget_crop
link
menu_ui
node
options
paragraphs
path
taxonomy
text
user
video_embed_field
Installation
- Add the recipe to your project's
composer.json
file:composer require morethanthemes/extra_product
- Apply the recipe using Drush:
drush recipe apply extra_product
Or, if you are using the recipes from a local path, you can run:drush recipe apply path/to/extra_product
Configuration
This recipe creates a new content type called "Product" (mt_product
). The content type is pre-configured with the following fields:
- Additional Features: Paragraphs for highlighting extra product features.
- Availability: The product's availability status.
- Body: The main description of the product.
- Buy Link: A link to purchase the product.
- Categories: Taxonomy terms for categorizing the product.
- Content Collapses: Collapsible content sections.
- Content Tabs: Tabbed content sections.
- Delivery Options: Information about delivery.
- Highlight: A field to highlight the product.
- Image: The main product image.
- Landscape Image: A landscape-oriented image for the product.
- Most Popular: A flag to mark the product as "most popular".
- Price: The price of the product.
- Pricing Table Item: A field for pricing table integration.
- Product Code: The product's code or SKU.
- Specifications: Paragraphs for product specifications.
- Subheader Body: A secondary body text.
- Subtitle: A subtitle for the product.
- Tags: Taxonomy terms for tagging the product.
- Teaser Image: An image for teaser displays.
- Video: An embedded video for the product.
The recipe also configures several view modes for the "Product" content type, including:
- Default
- Metro Tile
- Slide View
- Teaser Compact
- Teaser Tile
- Video Grid Item
- Teaser
This recipe provides a solid foundation for a product-centric Drupal site. You can further customize the content type and its fields to meet your specific needs.