Hello,

Here is the context:

  • Multiligual site
  • Entity translation
  • Panels
  • String substitions

On a multilingual site using entity translation, I was confronted with a case where string substitutions was the perfect solution to a simple problem. I added various nodes to a panels context and added a custom panels pane with keywords. Works well except for the field language.

I tracked down the problem to custom content type plugin of ctools (patch attached). The solution could be that simple, or I'm totally missing the big picture. If anyone has any thoughts on the subject, I would be willing to work on this if more work is required.

Cheers!

CommentFileSizeAuthor
keywords-language.patch769 bytesnlambert

Comments

nlambert’s picture

Status: Active » Needs review
chris matthews’s picture

Version: 7.x-1.5 » 7.x-1.x-dev

The 3 year old patch to custom.inc applied cleanly to the latest ctools 7.x-1.x-dev and (if still applicable) needs review.

keywords-language.patch:10: trailing whitespace.
    global $language;  
Checking patch plugins/content_types/custom/custom.inc...
Hunk #1 succeeded at 186 (offset 2 lines).
Applied patch plugins/content_types/custom/custom.inc cleanly.
warning: 1 line adds whitespace errors.
japerry’s picture

Status: Needs review » Closed (outdated)

Drupal 7 is no longer supported, closing.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.