Some of the code from #1536944: Allow panes to be translated handled the addition of a contextual link for translating panes. This was removed when that patch was committed.

Comments

mrfelton’s picture

Status: Active » Needs review
StatusFileSize
new917 bytes
dave reid’s picture

I'm actually a little surprised that entity_translation doesn't automatically add contextual links for translate via hook_menu or hook_entity_view_alter() so that it's not the responsibility of the individual modules to add this contextual link. Could we file a feature request against entity_translation or figure out a way to pass entity contextual links into $block->admin_links?

dave reid’s picture

Title: contextual link for translating fieldable panels panes » Add support for contextual links
StatusFileSize
new3.81 KB

After investigation, we can do better to support contextual links from within Fieldable panels panes. Entity translation actually does a good job and tries to add the 'Translate' as a contextual link, but we don't support showing it.

Please test the following patch.

dave reid’s picture

Title: Add support for contextual links » contextual link for translating fieldable panels panes
StatusFileSize
new4.72 KB

Revised patch to prevent contextual links on the admin/structure/fieldable-panels-panes/view/[id] pages and revised documentation.

dave reid’s picture

Status: Needs review » Fixed
dave reid’s picture

Title: contextual link for translating fieldable panels panes » Add support for contextual links

I appeared to have cross-posted with myself...

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.