silvershop / productcatalog
Provides the SilverShop Catalog admin for managing products and categories outside of the CMS site tree.
Package info
github.com/silvershop/silvershop-productcatalog
Type:silverstripe-vendormodule
pkg:composer/silvershop/productcatalog
Requires
- php: ^8.3
- silvershop/core: ^6.3
- silverstripe/cms: ^6
Requires (Dev)
- phpunit/phpunit: ^11.3
- squizlabs/php_codesniffer: ^3
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-11-19 17:55:59 UTC
README
Manage SilverShop products and categories from a dedicated Catalog admin instead of the CMS site tree.
Stores with hundreds or thousands of products quickly bury the rest of the site
in the pages section. This module keeps products and categories as pages (so
URLs, versioning, publishing and preview all work as before), but removes them
from the site tree and edits them through a ModelAdmin instead.
Requirements
- PHP 8.3+
- Silverstripe CMS 6
- SilverShop Core 6.2+ (earlier versions ship their own
ProductCatalogAdmin)
Installation
composer require silvershop/productcatalog
Then flush your cache (vendor/bin/sake flush).
What it does
- Adds a Catalog section to the CMS (
admin/catalog) with tabs for Products, Categories and Attributes, including the product CSV importer from core. This is theSilverShop\Admin\ProductCatalogAdminthat previously shipped with silvershop/core, so modules that add to itsmanaged_modelsor extend it (e.g. silvershop/stock, silvershop/comparison, silvershop/coloredvariations) work unchanged. - Hides
ProductandProductCategorypages (and any subclasses) from the CMS site tree, and from the "Add page" and "Change page type" options. - Adds a Parent category or page field to categories so they can be placed in the hierarchy without dragging them around the tree, and a Products tab listing the products whose main category it is. Products added from that tab start out in the category.
- Points CMS edit links for products and categories (reports, link pickers, etc.) at the Catalog admin.
Products and categories still appear on the front end exactly as before; only the CMS tree is affected.
Configuration
To keep using the site tree as well as the Catalog admin, clear the list entirely:
--- Name: app-productcatalog After: '#silvershop-productcatalog' --- SilverShop\ProductCatalog\Extension\HideCatalogFromSiteTreeExtension: hidden_page_types: null
Hide additional page types from the site tree (subclasses are included automatically):
SilverShop\ProductCatalog\Extension\HideCatalogFromSiteTreeExtension: hidden_page_types: - App\Page\Brand
Keep categories in the site tree and only move products into the Catalog admin (config lists merge, so clear the list before setting it):
--- Name: app-productcatalog-reset After: '#silvershop-productcatalog' --- SilverShop\ProductCatalog\Extension\HideCatalogFromSiteTreeExtension: hidden_page_types: null --- Name: app-productcatalog After: '#app-productcatalog-reset' --- SilverShop\ProductCatalog\Extension\HideCatalogFromSiteTreeExtension: hidden_page_types: - SilverShop\Page\Product
Caveats
- Silverstripe's
hide_from_cms_treeonly applies to the tree and list views. Searching the pages section can still return products and categories. - Non-catalog pages placed beneath a hidden category are hidden with it.
Running the tests
composer install vendor/bin/phpunit
License
BSD-2-Clause. See LICENSE.