Skip to content

Commit 9d557f9

Browse files
a.laurowskiAleksander Laurowski
authored andcommitted
FFWEB-2389 set custom field roles
1 parent 0ec5562 commit 9d557f9

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ final chapter *Exporting Feed* describes how to use provided console command to
3939
- [Generic Entity Factory](#generic-entity-factory)
4040
- [Extending Specific Web Component Template](#extending-specific-web-component-template)
4141
- [Split ASN on Category Page](#split-asn-on-category-page)
42+
- [Set custom Field Roles](#set-custom-field-roles)
4243
- [Contribute](#contribute)
4344
- [License](#license)
4445

@@ -510,6 +511,25 @@ In that case we do not use `splice` method but `slice` which does not mutate th
510511
**Note:** Dom Updated listener can be empty. ASN groups from the second ASN are also present in first, so there is no need to merge them together.
511512
**Note:** Since all ASN groups are available in first ASN, the Filter Cloud can be used.
512513

514+
### Set custom Field Roles
515+
If you don't plan to use feed offered by the module, or you want some of the essential column to have different name than the default you must remember to adjust the field roles used by the FACT-Finder® and the Web Components.
516+
517+
Default field roles are defined as array of Symfony Configuration Parameters in `services.xml` file`
518+
519+
<parameter key="factfinder.field_roles" type="collection">
520+
<parameter key="brand">Manufacturer</parameter>
521+
<parameter key="deeplink">Deeplink</parameter>
522+
<parameter key="description">Description</parameter>
523+
<parameter key="ean">EAN</parameter>
524+
<parameter key="displayProductNumber">ProductNumber</parameter>
525+
<parameter key="imageUrl">ImageUrl</parameter>
526+
<parameter key="masterArticleNumber">Master</parameter>
527+
<parameter key="price">Price</parameter>
528+
<parameter key="productName">Name</parameter>
529+
<parameter key="trackingProductNumber">ProductNumber</parameter>
530+
</parameter>
531+
532+
In order to override these parameters defined by a module, you have to redefine them in your application `services.xml`. Parameters defined there take precedence over the defaults, defined in the module
513533
## Contribute
514534

515535
We welcome contribution! For more information, click [here](.github/CONTRIBUTING.md)

0 commit comments

Comments
 (0)