-
Notifications
You must be signed in to change notification settings - Fork 111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
On create page, add default locale automatically #402
Comments
@sanderha can you please provide the versions of SilverStripe and the fluent module you're using? |
@robbieaverill SS 4.1 and fluent 4 :-) |
Yeah this issue is somewhat related to https://github.com/tractorcow/silverstripe-fluent/issues/350 which we treated as a documentation issue. This idea might be worth exploring though. What do you think @tractorcow? |
The default locale used to mean a lot more in fluent 3.x than it does in 4.x. The new convention is that all locales are equal, and that there is no real concept of a "default". The only reason for keeping the default locale a flag is to assist with choosing the view locale in the frontend. I don't think that "assume this page is always visible in the default locale" is a good default to be honest. |
@tractorcow I think this issue is mainly about |
Should it be enabled for all pages by default? |
@tractorcow I dont think |
Sorry, I mis-spoke. I meant "should it be enabled for all locales by default?". That may be less destructive than requiring users to re-check locales. |
Hmm yeah it probably should just enable all locales when creating a page. Thats also how Fluent 3 worked I believe (all locales were checked). |
I think DataObject needs an onCreated extension point which is invoked only once for every model. then we could add the locale links there. |
Is there any progress on this? This should better be a "hide locale" feature than a "add locale" |
@RoyalPulp We've made a task that attaches locales to pages after the FluentFilteredExtension is added, which might help you out: |
I might pick this up; Thanks @sanderha for that I'll look through your recipe later. :) It has some good ideas. |
This issue is for when
FluentFilteredExtension
is enabled onSiteTree
.When creating a new page, it has no Locales by default. So even after publishing the page, it will not show up in frontend, unless a Locale is added.
Wouldnt it make sense to automatically add the global default domain to a newly created page? Then the user can always change it if they like.
I added this through an extension:
The text was updated successfully, but these errors were encountered: