4

I've been experimenting with Craft 3 and Multi Sites and feel like I'm missing something...

My organisation has a main homepage and multiple sub-sites. I have a Single Section called 'home' that creates the main site homepage. I want each sub-site to have an individual homepage too. Each sub-site should only be able to edit their own homepage entry.

If I enable the 'home' Single Section across all sub-sites then they can all edit the main site homepage entry. The 'Propagate entries across all enabled sites?' option isn't available for Single Sections.

So how do I achieve this? :|

1

It's well explained in your section settings in the CP: there is a table with the settings for each site with a hint to leave the field blank if it should be the homepage.

If you want to have a different entry as the homepage for another site create a new single section for that site.

Single Entry 1

-----------------------------------------------------
| site              | url            | template     |
-----------------------------------------------------
| english, disabled |                |              |
| german, enabled   |                | index.twig   |
-----------------------------------------------------

Single Entry 2

-----------------------------------------------------
| site              | url            | template     |
------------------------------------------------------
| english, enabled  |                | index.twig    |
| german, disabled  |                |               |
------------------------------------------------------

That way users won't be able to edit the homepage entry from other sites. Another approach would be to limit the site permissions for your editors so they'll only be able to edit the elements which are connected to their site.

|improve this answer|||||
  • Thanks for your response Robin. These settings are only available within the Section settings, not on a per entry basis. So are you suggesting setting up a Single Section ('homeEnglish', 'homeGerman'...) for each site? What I'm trying to achieve is a different Entry within the Single Section 'home' for each site. – jack4000 Mar 13 '18 at 13:00
  • Yes that's what I mean singles have only one entry. So It is not possible to define settings per entry. Or you can - as I said - create only one multi site entry and restrict your user permissions so your editors have only access to a certain site – Robin Schambach Mar 13 '18 at 13:01
  • Thanks for the clarification. Because it is possible to restrict entries in a Channel Section to one Site I thought it would be possible to do the same for a Single Section (ie: every Site gets 1 Entry in a Single Section). – jack4000 Mar 13 '18 at 13:06
  • well.. it is. In your section settings – Robin Schambach Mar 13 '18 at 13:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.