承接 dft/silverstripe-cataloguepage 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

dft/silverstripe-cataloguepage

最新稳定版本:2.0.5

Composer 安装命令:

composer require dft/silverstripe-cataloguepage

包简介

Silverstripe module that creates a simple page in the CMS to map products and categories to.

README 文档

README

A custom page type that either allows:

Mapping of product objects (defined via config) to a CMS page

Or

Mapping of multiple categories to a page in the CMS that then renders them (and their products) into a template.

The page type also includes a $PaginatedChildren variable to allow automatically breaking up larger product lists into smaller pages.

Installation

The easiest way to install this module is via composer:

# composer require "dft/silverstripe-cataloguepage"

Otherwise install and download this module to the "cataloguepage" folder in your project root.

Requirements

  • Silverstripe CMS 4 or 5

Recommended

  • Silverstripe Catalogue

Setup

Unless you are using the SilverCommerce catalogue admin or frontend you will need to identify your custom product and category classes.

Custom Product or Categories

To customise the Product and Category objects that are used via this page, you will need to change the "product_class" and "category_class" config variables on CataloguePage.

It is important to be aware that CataloguePage will attempt to hand over the current request to a controller identified by the "base_product_controller" config variable. You will need to ensure that you create a conntroller that can render your product.

The easiest way to do this is to set it in your config.yml as below:

DFT\SilverStripe\CataloguePage\Model\CataloguePage:
  product_class: 'Product'
  category_class: 'Category'
  base_product_controller: 'ProductController'

Usage

Setup the catalogue as normal (add categories and then add products to them).

Then add a catalogue page.

Once the page is created, you should have "Products" and "Categories" tabs in the CMS, use this to add categories that will be displayed on this page.

统计信息

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

GitHub 信息

  • Stars: 1
  • Watchers: 4
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2024-12-10

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固