-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Use i18n translated fields in slug template tags #5493
Comments
Can I pick this up? |
Sorry for the delays, after having a hand at this, this seems a bit trickier to accomplish than it seems. What we want to have is for the user to be able to visit ether:
with their respective
at the moment we store the
this is because when you initially create the record on the admin panel, the slug is The problem is not being able to change the created files, the problem is finding them again on the admin side. if the files are stored as
they show up as a single item on the ui, under the
|
any news on this topic? I really like the i18n feature, but the fact that files are always saved in the default language makes it very hard to use, when the goal is to have translated urls in the end. could help out if needed, would love to see the feature in near future |
To add to this, with Hugo the locale slug can be as such Reference: https://gohugo.io/content-management/multilingual/ |
Context
Is your feature request related to a problem? Please describe.
I'm not able to define a translated slug for each language using the i18n beta feature, the template tag uses the default language for all of them.
Describe the solution you'd like
Template tags should take the value from the field in its respective language (
{{slug}}
or{{title}}
are the ones I'm looking for)Additional context
This is my config file:
Then I publish a new "Item" with the following titles:
And it generates the following files:
The text was updated successfully, but these errors were encountered: