Switching tailor blueprint multisite settings after launch

Hi there,

I’ve previously set up a multisite system where publications are published across different domains. Domains represent different sub organisations and (sometimes) have different locales, therefore I used the multisite: true flag. This allowed us to selectively publish publications to specific organizations.

Now, they want to ensure that if a publication is published for example in French, it will appear on all sites with FR as their locale. I know we can achieve this using the multisite: locale flag.

However, I’ve noticed that this only works for future publications, not for those previously saved. Manually opening and saving each publication individually does produce the desired result.

Is there a more efficient way to retroactively publish existing records based on their locale? Are there any console commands available for this purpose?

What are your views on this? Does anyone have any experience on this?

Hi @chocolata

There is a tailor:propagate console command that can be used for this purpose. It will spin over every record and “save” it to produce any propagated records.

php artisan tailor:propagate
1 Like

Hi Sam, could it be that this does not work as expected?

The beginning of my blueprint looks like this:

uuid: 9e7290ce-8db9-4c6c-9009-82d679d7a564
handle: Subspecialties\Specialty
type: stream
name: Subspecialties
drafts: false
multisite: locale

I’ve now added two new sites with locale nl and fr.
I’ve then run php artisan tailor:migrate.

The console tells me:

Propagating Blueprint Records
- Subspecialties: 20 record(s)
- Taskforces: 8 record(s)
- Practice Locations: 4 record(s)

But when I look at the Subspecialties Tailor records in the backend, they do not show up in the context of the new sites with locale FR and NL.

I have checked and they were correctly created previously in two other sites that had the locale FR and NL.

So keep in mind that the site previously had 3 subsites (locales EN, NL, FR), and now two have been added (NL, FR). I expected the NL and FR versions of my Tailor records to appear in the newly created sites after running php artisan tailor:propagate.

Final note: the previous NL and FR sites belonged to a different site group. Could that be the cause?

Could you please advise?