Hi all, i am new to october cms and like it a lot! Currently i am developing my first plugin and do have a question regarding relations in forms.

Given is the relation "CAR belongs to BRAND".

To select a brand while creating a car i use the relation widget, which works as expected.

        label: Brand of the car
        type: relation
        nameFrom: brand_name

What i want to achive is, that the brands in this widget are ordered by the count of usage all over all cars. If a brand is used by 3 cars, it should be above a brand which is only used by 1 car.

Any ideas?

Last updated

1-1 of 1