Replies: 3 comments 9 replies
-
Why not just create multiple Single sections though – one for each site group, say, only enabled for the sites within those groups? I realize there’s a bit of extra overhead with that approach given that you will need to recreate the field layout for each section, however that won’t be a problem in Craft 5, where entry types will be decoupled from sections (#8716). |
Beta Was this translation helpful? Give feedback.
-
I'm just stumbling into this working on an up-to-date Craft 5 as I am getting ready to release a website in multiple locales and my only single section, at this point, is the home page, but as a matter of fact, it's the main page where there are lots of different content per language. Since I'm working on Craft 5 and seeing this in the future, I was searching for a way to make this work to no avail. 🤔 Most probably because single + home is a combo that stumbles into this exception? Decoupled entry types don't change anything as far as I understand in my case, right? |
Beta Was this translation helpful? Give feedback.
-
+1 for this feature request, I've also run into this a couple of times. Another use-case to consider @brandonkelly, is multi-sites where the structure is shared, but basically no content is shared. We have a couple projects like this, one with 10 sites in total. All channels and structures have propagation turned off (only save entries in the site they were created in). But with singles, that's not possible. This leaves two options:
Both of those options feel like workarounds for the lack of propagation methods for singles. In the case above, we could set the single section to only save entries in the site they were created in. Then a separate entry could be created for every site (either manually or automatically when the single is created), so we would end up with 10 separate entries instead of one entry that's propagated to 10 sites. Full support for propagation methods would be cool as well. So we could set a single, for example, to only propagate within its site group. So in a site with three site groups and three sites in each group, we would end up with three separate entries, each of which is propagated to three sites. We have at least three projects where we've run into this problem, so at least for us, it's not super uncommon. |
Beta Was this translation helpful? Give feedback.
-
Circling back to this FR, it would be great to have the option to set the propagation method for a Single section.
In the use case where I'm needing this, consider a Header or Footer single, with a Matrix (or Table or even Neo) Field where the user can fill out several links for navigation.
For this installation, there's a site group for the main site that exists for multiple locales. Each locale has the same (translated) links in the header and footer. However, there are other sites in their own groups that share the layout and fields, but not the same content; these sites need different links in the header and footer. This is currently not possible, as the
propagationMethod
for the Single section is hard-coded toall
.Now, I've been cheeky and changed the
propagationMethod
property tositeGroup
in the project config files, synced them up, and then it seems to "just work". However, saving any changes to those Single section would reset it to All...So, could we either have the same drop-down options for Singles sections to set the
propagationMethod
, or alternatively, can we use the before-save hook to change the value and not have it be overwritten by the code linked above?Thanks for considering!
Beta Was this translation helpful? Give feedback.
All reactions