Displaying custom column ¶
1. Check if there is an existing block for your field¶
By default you can configure columns per document type in the configuration.
You can display any field that has a block in OrderHistoryBundle/Resources/views/OrderHistory/Components/fields.html.twig
.
Note
When using the block name as column identifier in the configuration, remove the suffix _field
.
If there is no block for your custom field, you need to create one.
The block name usually reflects the name of the document line field, for example:
1 2 3 4 5 6 7 8 9 |
|
Block name:
1 2 3 4 5 6 |
|
2. Create missing block¶
If you did not find the corresponding block, you need to create your own. First you need to know the document structure.
Custom fields are passed to SesExtension
if there is no standard for them.
1 2 3 4 5 6 7 8 9 |
|
Override the corresponding template in OrderHistoryBundle/Resources/views/OrderHistory/Components/fields.html.twig
.
Create a new block:
1 2 3 4 5 6 7 8 |
|
3. Add new column to the configuration¶
1 2 3 4 5 6 7 |
|