Skip to content
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

Question: Localize only part of a content-type #4837

Open
LMSSonos opened this issue Nov 19, 2019 · 3 comments
Open

Question: Localize only part of a content-type #4837

LMSSonos opened this issue Nov 19, 2019 · 3 comments
Milestone

Comments

@LMSSonos
Copy link

Let's assume I have a page with upcoming art events. From the page structure i have

  • Event Name
  • Event Description
    List of Event-Dates

Now if i localize that page, i translate Event Name and Event Description. But I want to have the Event-Dates shared, so if I edit them on one localization should be updated on the others as well. I did not find a way to solve this, @hishamco will #4466 solve this or is there another way to implement it

@hishamco
Copy link
Member

hishamco commented Nov 19, 2019

My PR will localize all things that are not localized by PortableObjectStringLocalizer including menu names, content type names .. etc

In your case I don't think there's a way currently to achieve that

/cc @sebsatienros @jptissot

@LMSSonos
Copy link
Author

Thanks for your answer. I'm currently trying another way. Having a new Content-Type called Date which is using the same Taxonomy as the event. Then I create a Agenda Page, which contains a Bag with all Event-Dates (Each date 1 entry). On the EventPage I will try to make a query to get the Agenda-Document, then pass it to a custom liquid filter, which will filter all items with the same taxonomy as the current page. This also solves the localization issue, as I can switch that in the filter.

@sebastienros
Copy link
Member

@LMSSonos this scenario is handled in this PR: #4531

Where you can define which piece of information are culture agnostic, meaning that when you create a localized version of a content item, if you change something that is culture agnostic then the changes will be propagated on the other localized versions of the same localization set.

In your case List of Event-Dates would be culture agnostic.

@sebastienros sebastienros added this to the 1.0.x milestone Nov 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants