-
Notifications
You must be signed in to change notification settings - Fork 38
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
Add "Translate" link to contextual content links. #6410
Comments
@olafgrabienski here you go, PR backdrop/backdrop#4662 Adding contextual links is very simple - just a one-line change! Gotta love Backdrop! |
Thanks a lot for the PR @argiepiano, how wonderful! I've tested the PR in the sandbox site: It works as expected on a page with referenced content, and it works also in the Views block of promoted content on the home page. Screenshot: |
I've added |
Cool, I wasn't even aware of that 'context' key. RTBC 👍 |
Many thanks for reviewing! Adding the bugfix release milestone. (I see, there is one failing test. A typical 'not related' one?) |
Nice tiny little change here! I merged backdrop/backdrop#4662 into 1.x and 1.27.x. Thanks @argiepiano, @olafgrabienski, and @indigoxela! |
Description of the need
When referenced content items are displayed on a page as "Rendered entity", single items can be edited and deleted using its contextual links. On multilingual sites, I would expect there also a contextual link to translate an item. Without such a link, the translation workflow is quite complicated.
Proposed solution
For content types with enabled translation, add a "Translate" link in the contextual links of referenced or otherwise embedded nodes (e.g. a view with content teasers). The path should be
node/NID/translate
(ornode/NID-REFERENCED/translate?destination=node/REFERENCING-NID
).Alternatives that have been considered
A custom or contrib module could provide such a link. In my opinion, it makes however sense to have the feature in Backdrop core. (Drupal 8+ does so, by the way.)
Draft of feature description for Press Release (1 paragraph at most)
Backdrop now includes contextual links to improve the content translation workflow.
The text was updated successfully, but these errors were encountered: