samsonos/cms_app_product

SamsonCMS 产品应用

dev-master 2016-03-15 17:13 UTC

This package is not auto-updated.

Last update: 2024-09-14 16:03:19 UTC


README

此模块美观简单,是用于电子商务网站目录管理的 SamsonCMS 应用。

产品模块兼容两个基本的 SamsonCMS 应用 - materialstructure

使用 ui 函数,CMS 管理员可以修改目录结构,将产品从一个分类移动到另一个分类,对分类和子分类进行 CRUD 操作。

请随意通过自定义扩展来扩展此应用。

配置

这使用 SamsonPHP 配置系统 完成

所有可用的配置字段包括

class ProductConfig extends \samson\core\Config 
{
    /** @var int Identifier of catalog root structure */
    public $catalogID = __CATALOG_ROOT_STRUCTURE;

    /** @var array Collection of system structures identifiers. These categories will be ignored in all application actions */
    public $systemStructureIDs = array(__SYSTEM_STRUCTURE_ID_1, __SYSTEM_STRUCTURE_ID_2, __SYSTEM_STRUCTURE_ID_3);

    /** @var bool Flag of application visibility. Use it as true if you extend current module by custom application */
    public $hide = false;
}

目录结构示例

请查看 SamsonCMS 电子商务网站结构示例。

  • __CATALOG_ROOT_STRUCTURE
    • __CATALOG_CATEGORY
      • __CATALOG_SUB_CATEGORY
        • __CATALOG_SUB_SUB_CATEGORY
        • __CATALOG_SUB_SUB_CATEGORY
      • __CATALOG_CATEGORY
        • __CATALOG_SUB_SUB_CATEGORY
        • __CATALOG_SUB_SUB_CATEGORY
    • __CATALOG_CATEGORY
      • __CATALOG_SUB_CATEGORY
        • __CATALOG_SUB_SUB_CATEGORY
        • __CATALOG_SUB_SUB_CATEGORY
      • __CATALOG_SUB_CATEGORY
        • __CATALOG_SUB_SUB_CATEGORY
        • __CATALOG_SUB_SUB_CATEGORY

在此示例中,您必须在配置中设置 $catalogID 等于 __CATALOG_ROOT_STRUCTURE 标识符。