flux:field.relation too many records / disable right list

raw

0-problem.rst

A flux:field.relation displays all records in the list on the right, which is too much if there are many records. Blocks + Crashes the browser if there are 70.000 records in it.

The solution is to use flux:field.multiRelation, which only has a search field + record browser, not a list with all records.

raw

1-solution.xml

1
2
3
4
5
<flux:field.multiRelation name="settings.entries" label="Entries"
    table="tx_foo_table" minItems="1" maxItems="1000" size="5"
>
  <flux:wizard.suggest/>
</flux:field.multiRelation>
raw

2-relation.png

2-relation.png
raw

3-multirelation.png

3-multirelation.png
Anonymous Anonymous
owner

History