sulu / product-bundle
Sulu Product Bundle
0.17.6
2018-05-07 13:59 UTC
Requires
- php: >=5.4
- doctrine/orm: 2.5.*
- jackalope/jackalope-doctrine-dbal: ~1.2.0
- jackalope/jackalope-jackrabbit: ~1.2.0
- oro/doctrine-extensions: 1.0.*
- sulu/sulu: ~1.3
- sulu/validation-bundle: ~0.1
- symfony-cmf/routing-bundle: 1.2.*
- willdurand/hateoas-bundle: >=0.3
Requires (Dev)
- evenement/evenement: 2.0.0 as 1.0.0
- phpunit/phpunit: ~4.0.0
- sensio/framework-extra-bundle: ~3.0
- sulu/sulu: ~1.4
- symfony-cmf/testing: ~1.2
- symfony/monolog-bundle: 2.4.*
- symfony/symfony: 2.8.*
- zendframework/zendsearch: @dev
This package is auto-updated.
Last update: 2026-08-04 14:57:18 UTC
README
Association form overrides
The bundle generates a product_associations form with one field per configured
sulu_product.association_types key. A project overrides that form by shipping its own form
XML using the same product_associations key in a directory registered under
sulu_admin.forms.directories — the Sulu skeleton registers config/forms by default.
Rules for the declared fields:
- The field name must be
associations/<type>, where<type>is a configuredsulu_product.association_typeskey. - Only the type
product_selectionis allowed — no other field type maps to product associations. - A
propertiescollection param declares which target properties resolve, in addition to the always-forcedtitleandurl. - Declared fields are never regenerated or relabeled, so add
<meta><title>yourself. - Invalid fields fail
cache:warmup.
<!-- <project>/config/forms/product_associations.xml --> <form xmlns="http://schemas.sulu.io/template/template"> <key>product_associations</key> <properties> <property name="associations/alternative" type="product_selection"> <params> <param name="properties" type="collection"> <param name="image" value="image"/> <param name="code" value="code"/> </param> </params> </property> </properties> </form>
Types the project does not declare keep their generated field, label and layout.