You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
deffetch_content_entry(slug)iftype=content_type_repository.find(page.content_type_id)# don't accept a non localized entry in a locale other than the default onereturnniliftype.localized_names.count == 0 && locale.to_s != default_locale.to_sdecorate_entry(content_entry_repository.with(type).by_slug(slug))elsenilendend
I don't get why we shouldn't have a localized page for a non localized content.
To get around that, I just added a non editable, non required localized field.
It's just strange.
The text was updated successfully, but these errors were encountered:
hi @proxygear, I met the exact same problem 2 days ago on a Locomotive site. I think the problem is related to SEO. Basically, Google doesn't really like when a site has 2 different pages with the exact same content.
Right now, I don't know what the right behavior should be. What's your opinion?
As you can see in my example, it's a list of French department.
So I want to have :
/departements/60
/departements/en/60
/departements/de/60
The code and the name of the departement stay the same (It would be the same with city names). The reste of the page content gonna be translated to the targeted language.
I guess Google will not have a problem with it.
.
Context
I have a the following content type :
As you can see, none of the fields are localized.
Code
https://github.com/locomotivecms/steam/blob/master/lib/locomotive/steam/middlewares/templatized_page.rb
I don't get why we shouldn't have a localized page for a non localized content.
To get around that, I just added a non editable, non required localized field.
It's just strange.
The text was updated successfully, but these errors were encountered: