定制 morethanthemes/extra_product 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

morethanthemes/extra_product

最新稳定版本:1.0.1

Composer 安装命令:

composer require morethanthemes/extra_product

包简介

Adds a product content type.

README 文档

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

  1. Add the recipe to your project's composer.json file:
    composer require morethanthemes/extra_product
  2. 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.

统计信息

  • 总下载量: 16
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2025-08-25