Relation controller in Multisite model


I hope this email finds you well. I am currently working on a project where I have encountered an issue that I believe might be a bug. I am using the October\Rain\Database\Traits\Multisite trait within a model, and I have a Category model that implements the RelationController behavior.

Here’s a snippet of the Category model:

phpCopy code

public $implement = [

public $formConfig = 'config_form.yaml';
public $listConfig = 'config_list.yaml';
public $relationConfig = 'config_relation.yaml';

I also have a Product model with the following settings:

phpCopy code

class Product extends Model
    use \October\Rain\Database\Traits\Validation;
    use \October\Rain\Database\Traits\Multisite;
    use \October\Rain\Database\Traits\Sortable;

    public $table = 'lagunascofium_products_';

    protected $propagatable = ['cover_image'];
    protected $propagatableSync = true;

    public $rules = [];

My goal is to ensure that when I create a Product inside the Category model, it gets created in every site. However, I’m uncertain whether this is possible or if I’m overlooking something in my implementation.

This requirement is crucial for our client, and any assistance you can provide would be greatly appreciated.

I’m unsure whether I can achieve this using Tailor or a “traditional” plugin. Any solution would be appreciated.

Thank you for your help.

Best regards, Zsolt

Hi @daft ,

Can I ask you to help me with thes please.

Thank you,

Hi @ngyzsolt

If you believe you have found a bug in October CMS, send it to the helpdesk here: Contact Us - October CMS