This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

october51371
october51371

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.

fields:
    brand:
        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

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.