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

GvErikk
GvErikk

Hi relatively new to October. I have tried to search the problem that I have on the internet but couldn’t find a working solution for me.

In short I’m trying to display the number of relations a record has (in the backend columns.yaml). I tried to use useRelationCount (https://octobercms.com/docs/backend/lists). But this would not display anything. Am I doing something wrong?

skoobi
skoobi

Not sure if this is what your looking for or where your trying to display it but ::

count($record->relation) or $model->relation_count[0]->count

Last updated

1-2 of 2

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