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
Most of the times when creating a multi-lingual website, we have one single (eg. Product page) and one Channel (eg. Products).
The Product page single is the page that has the Twig template where all entries from the channel Products are listed. We link to this single and not just directly to a template because we want to have the translated slugs that a single section provides and at the same time, we use the title field to provide the translations for that page.
The problem is that there is no link between that single and the channel that populates its data. It would be great if we could have the entry URL format of the channel template translated by using twig code such as { craft.entries.section("productPage").first().title } instead of having to manualy type over the same name as in the single. For the moment we can only use { attributes } from the entries themselves and in singles we can't use anything, not even the title field of the single entry.
That is an issue when adding new languages or when the client changes the title of the section. The entry URL format of the channel pages need to be edited manually.
Something like the functionality of the LJ Dynamic Field plugin would be nice here.
This discussion was converted from issue #1591 on June 22, 2021 06:18.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Description
Most of the times when creating a multi-lingual website, we have one single (eg. Product page) and one Channel (eg. Products).
The Product page single is the page that has the Twig template where all entries from the channel Products are listed. We link to this single and not just directly to a template because we want to have the translated slugs that a single section provides and at the same time, we use the title field to provide the translations for that page.
The problem is that there is no link between that single and the channel that populates its data. It would be great if we could have the entry URL format of the channel template translated by using twig code such as { craft.entries.section("productPage").first().title } instead of having to manualy type over the same name as in the single. For the moment we can only use { attributes } from the entries themselves and in singles we can't use anything, not even the title field of the single entry.
That is an issue when adding new languages or when the client changes the title of the section. The entry URL format of the channel pages need to be edited manually.
Something like the functionality of the LJ Dynamic Field plugin would be nice here.
Beta Was this translation helpful? Give feedback.
All reactions