tenbruggencate/productencyclopedia-lite

Shopware 6 product encyclopedia: two-tier educational content (browse grid + deep profiles) linked to products, server-rendered.

Maintainers

Package info

bitbucket.org/Bruggencate/sw-plugin-productencyclopedia-lite

Homepage

Issues

Documentation

Type:shopware-platform-plugin

pkg:composer/tenbruggencate/productencyclopedia-lite

Transparency log

Statistics

Installs: 3

Dependents: 0

Suggesters: 0


README

Ten Bruggencate Development

Product Encyclopedia Lite

Product Encyclopedia Lite

Structured educational content pages linked to products, for Shopware 6. Two-tier index pattern: a lightweight browse grid that grows fast + a curated deep-profile registry that grows slowly. Generalised from a stone-encyclopedia reference implementation.

License: MIT ยท Shopware: 6.7.x ยท PHP: 8.1 / 8.2

๐Ÿ‡ฌ๐Ÿ‡ง English ยท ๐Ÿ‡ณ๐Ÿ‡ฑ Nederlands ยท ๐Ÿ‡ฉ๐Ÿ‡ช Deutsch

Lite tier โ€” and what's coming in Pro

Product Encyclopedia Lite (this package, tenbruggencate/productencyclopedia-lite) is the free tier of the Product Encyclopedia family. It handles the foundation: structured educational content pages (browse grid + deep profiles) linked to products, server-rendered Twig templates, per-sales-channel config and the registry pattern you extend from your hosting project. If you need "give a content-heavy catalog a real encyclopedia layer", Lite is the whole answer.

Product Encyclopedia Pro (coming as tenbruggencate/productencyclopedia-pro, distributed via the Shopware Store) will layer on the editorial + scale features that the Lite tier deliberately leaves out:

  • Rich CMS blocks โ€” video embeds, comparison tables, glossary entries and interactive learning blocks ready to drop into profile content sections from the Shopware admin
  • Bulk content import / export โ€” manage encyclopedia entries as a CSV / JSON dataset instead of as PHP registry subclasses
  • Multi-language sync helper โ€” keep nl-NL / en-GB / de-DE profile content in lock-step without copy-pasting between locale registries
  • Related-product algorithm โ€” automatic, scored recommendations linking profile pages to product detail pages by shared attributes, tags and content overlap

Pro is on the roadmap, not yet released. Lite alone is production-ready for the "structured educational content + product cross-linking" use case and stays free.

Screenshots

Encyclopedia index page on desktop โ€” branded hero, stones grid with colored dots, names, and one-liner descriptions per card.

Encyclopedia index โ€” desktop, browse grid

Encyclopedia profile page on desktop โ€” colored circle, title, lead, fact box (color, hardness, chakras, zodiac), then editorial content section.

Encyclopedia profile โ€” Amethist deep page

Encyclopedia index page on mobile โ€” same grid, fully responsive, cards stack.

Encyclopedia index โ€” mobile (responsive)

What it does

Content-heavy catalogs (wines, stones, spices, knives) need two kinds of pages that are both educational and both link to products โ€” but they shouldn't grow at the same rate:

  • A fast-growing browse grid where every new SKU can appear immediately with a title + thumbnail + one-liner
  • A slow-growing deep-profile registry where a handful of curated items get real editorial content (origins, how-to-use, care, history)

Most content plugins force you to pick one. This plugin ships both tiers, linked by slug, so you can add items to the browse grid the day they're in stock and invest in deep profiles at your own pace.

Install

Product Encyclopedia Lite is free and distributable via Composer / Packagist or via the Shopware Store.

composer require tenbruggencate/productencyclopedia-lite
bin/console plugin:refresh
bin/console plugin:install --activate TenBruggencateProductEncyclopedia
bin/console cache:clear

The plugin class name stays TenBruggencateProductEncyclopedia (grandfathered from v1.x โ€” only the composer package name changed in v2.0.0). If you're upgrading from v1.x see the v2.0.0 changelog entry for the one-line composer manifest update.

Two-tier design

BrowseIndex (lightweight tier)

Purposefast-growing grid for browsing and discovery
Data per entryslug, title, one filterable attribute value, one-liner description
Growth ratefast โ€” new entries appear the moment they're in stock
Example40+ stones in a visual grid, filterable by colour

ProfileRegistry (rich tier)

Purposecurated deep profiles with full editorial content
Data per entryslug, title, description, image, multiple attribute groups, tags, ordered content sections
Growth rateslow โ€” each entry is a real content commitment
Example10 stones with chakra/zodiac data, meaning, care instructions, experiments

Browse entries have an optional profileSlug that links to a deep profile when one exists. The browse grid works standalone โ€” not every item needs a deep profile.

Configuration

In the Shopware admin under Settings โ†’ System โ†’ Plugins โ†’ Product Encyclopedia Lite.

FieldDefaultPurpose
enabledtrueKill switch for all encyclopedia routes
baseRouteencyclopediaURL prefix (display only โ€” actual paths are in route XML)
itemLabelItemWhat entries are called (stone, wine, spice)
itemLabelPluralItemsPlural form
filterAttributecolourWhich attribute shows as filter pills on the browse grid

Routes

Route IDPathController
product-encyclopedia.browse/encyclopedia/browseBrowseController::index
product-encyclopedia.profile/encyclopedia/{slug}ProfileController::show
product-encyclopedia.group/encyclopedia/group/{group}/{value}AttributeGroupController::show

Populating with data

The plugin ships with empty registries. Extend ArrayProfileRegistry in your theme plugin:

final class MyStoneRegistry extends ArrayProfileRegistry
{
    protected function buildItems(): array
    {
        return [
            'amethyst' => new ProfileItem(
                slug: 'amethyst',
                title: 'Amethyst',
                description: 'A purple variety of quartz.',
                imageUrl: '/images/amethyst.jpg',
                attributeGroups: [
                    ['name' => 'chakra', 'values' => ['third-eye', 'crown']],
                ],
                tags: ['calming', 'purple'],
                contentSections: [
                    ['heading' => 'Meaning', 'body' => 'Valued since antiquity...'],
                ],
            ),
        ];
    }
}

Register your subclass in services.xml:

<service id="TenBruggencateProductEncyclopedia\Registry\ProfileRegistryInterface"
         class="MyPlugin\Registry\MyStoneRegistry"/>

Standards

  • Performance โ€” registries are in-memory arrays; zero DB queries for profile lookup. Browse grid uses server-side filtering (no JS framework, works without JavaScript).
  • SEO โ€” every profile page emits structured Article JSON-LD. meta_title and meta_description are derived from the profile data and overridable per entry. Filter-pill URLs are crawlable as /encyclopedia/group/{attribute}/{value} (server-rendered, no #fragment routing).
  • GDPR โ€” stateless. No cookies, no tracking, no per-visitor data. Full data-flow documentation in GDPR.md.
  • WCAG 2.2 AA โ€” semantic heading hierarchy (h1 โ†’ profile title; h2 โ†’ content section headings); filter pills are <a> tags (keyboard + screen-reader accessible); focus state inherited from theme. Live axe-core audit output + localised-copy evidence: docs/ACCESSIBILITY.md.
  • Security โ€” all profile / browse data comes from PHP registries; no user-controllable input reaches templates or DB. No XSS surface.
  • Uninstall โ€” plugin:uninstall --keep-user-data preserves every TenBruggencateProductEncyclopedia.config.* row; without the flag the destructive path clears them all. No owned tables โ€” content comes from your hosting project's registries, not from this plugin.

Production-readiness checklist

A deliberately short list of things to verify before enabling the plugin on a customer-facing storefront. Not legal cover โ€” the MIT license already disclaims warranty โ€” but practical guidance an experienced operator would want anyway.

  • [ ] Provide BrowseEntry + ProfileItem registries from your hosting project. This plugin defines the shape (interfaces, controllers, templates) but doesn't ship content โ€” your theme plugin or a content-only sibling registers the actual entries. With no registry wired in, /encyclopedia/browse renders an empty grid and profile slugs return 404. Plan the content shape before flipping the install on prod.
  • [ ] Decide on your route prefix. Default routes are at /encyclopedia/*, but most projects rebrand them to a domain-appropriate base (/stones/*, /wines/*, /spices/*). Configure the SEO URL templates in Shopware admin so the public URLs match your category nomenclature, not the generic plugin term.
  • [ ] Test profile-slug โ†” browse-entry linkage on staging. Browse cards optionally link to deep profiles via profileSlug; a typo in either side silently breaks the cross-link without a 404 (the card just doesn't become a link). Render a few cards and confirm the ones with deep profiles do link out.
  • [ ] Run axe-core on a profile page before launch. The plugin's templates are WCAG-clean, but your theme's typography + colour-contrast applies once tokens are inherited โ€” the audit has to happen with your theme active, not against the plugin in isolation.
  • [ ] Plan content cadence honestly. The two-tier model only pays off if browse entries grow fast and profiles grow slow. Shipping 20 cards with 0 deep profiles is fine; shipping 20 cards with 20 half-finished profiles is a maintenance burden visible to every visitor โ€” leave a slug empty rather than ship Lorem Ipsum.

Snippets

Ships with translations for nl-NL, en-GB, and de-DE. Override in your theme plugin's snippet JSON files using the product-encyclopedia.* key namespace.

Compatibility

Core platform

ShopwarePHPStatus
6.7.x โ€” tested against 6.7.8, 6.7.98.1, 8.2Stable
6.6.xโ€”Not supported
6.5.x and earlierโ€”Not supported

Database

EngineVersionNotes
MySQL8.0+Primary target; JSON functions used for config-row manipulation in migrations
MariaDB10.11+Tested end-to-end; earlier versions lack some JSON operator support

Browsers (storefront)

Evergreen browsers only โ€” the two most recent stable releases of each:

BrowserDesktopMobile
Chrome / Chromiumโœ…โœ…
Firefoxโœ…โœ…
Safariโœ… (macOS)โœ… (iOS 16+)
Edgeโœ…โ€”

Internet Explorer and legacy Edge are not supported. The plugin emits no runtime JS (where applicable) so graceful degradation on older browsers usually still renders content, just without progressive enhancements.

Admin browsers

Same evergreen matrix โ€” the Shopware admin is Vue-based and has its own compatibility baseline that this plugin doesn't extend or narrow.

Development

ToolVersionScope
PHPโ‰ฅ 8.1Runtime + test suite
Composer2.xDependency management
Node.jsโ‰ฅ 18Only needed if you edit SCSS and re-run the theme compile
Pythonโ‰ฅ 3.9Only needed for the repo's asset-pipeline scripts (scripts/*.py)

Accessibility

WCAG 2.2 level A + AA โ€” see docs/ACCESSIBILITY.md for axe-core audit output and per-page violations.

What we test before each release

  • Full PHPUnit unit suite against PHP 8.1 + 8.2 (source-inspection tests don't need a kernel)
  • PHPStan level 8 + PHP-CS-Fixer (@PSR12 + @Symfony)
  • Composer validate on every plugin
  • Live-DB smoke tests (plugin install โ†’ activate โ†’ route render โ†’ uninstall cycle)
  • axe-core audit on the primary storefront surfaces (see ACCESSIBILITY.md)

Related plugins

Sibling plugins from the same publisher:

Support

License

MIT ยฉ Ten Bruggencate Development

More from Ten Bruggencate Development

Focused, privacy-first Shopware 6 plugins โ€” free to start, upgrade when you grow:

  • Newsletter โ€” Lite: GDPR-safe signup & subscriber-list management ยท Pro: campaigns, lifecycle automations, native-data segmentation
  • Legal Pages โ€” Lite: localized legal-page templates ยท Pro: the compliance toolkit (maintained templates, cookie policy, accessibility statement)
  • Analytics โ€” multi-backend (Matomo / Plausible), GDPR-first, cookieless-capable
  • Maintenance โ€” a branded, SEO-correct maintenance page
  • Multi-Brand โ€” serve multiple brands from one Shopware, by hostname
  • Product Encyclopedia โ€” Lite: structured educational content pages (browse grid + deep profiles) linked to products ยท Pro (coming): rich CMS blocks (video, comparison tables, glossary, interactive learning), bulk content I/O, multi-language sync helper, related-product algorithm
  • Seasons โ€” scheduled theme-config variants