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

Firestarter
Firestarter

Hello. Please help me with my problem.

I have a Category(use \October\Rain\Database\Traits\NestedTree;) model with additional field domain_id.

I can filter a reorder in Backend\Behaviors\ReorderController and others Controller actions:

``

public function reorder($domain_id = null)
{
    $this->domain_id = $domain_id;
    $this->asExtension('ReorderController')->reorder(); 
}

public function reorderExtendQuery($query)
{
    if ($this->domain_id) {
        $query->where('domain_id', $this->domain_id);
    }       
}

``

i have a relation form field:

``

parent:
    label: 'firestarter.thunder4::lang.category.form.parent'
    nameFrom: name
    descriptionFrom: description
    span: auto
    type: relation

``

But How to filter this relation form field based on this(nested set) model by "domain_id"? Please help.

1-1 of 1

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