I use node picker with tinymce on a multilingual site. The problem is when editing a node that is not in the interface language that I'm working in. Suppose I have a node in French, and the admin interface language is set to English. I create a new node in French and I want to put a link in it tot the first mentioned French node. I will then get a link like 'en/node/75'.
So there are two problems with the link:
1. it uses the wrong path prefix (en instead of fr)
2. it is untranslated with url_alias, so no seo friendly urls
After digging into it, I found a post in the views forum: http://drupal.org/node/664654 which clearly relates to my problem. The essence of the views issue is that there's 2 ways for creating a node link in views:
- field 'node link'
- another field with option 'link field to its node' checked
In the current version of tinymce_node_picker, the first method is used ('node link').
Fixing this issue for me was as simple as replacing the node link with another field (e.g.: title) and checking the 'link field to its node' option, and additionally one can rewrite the output of this field to 'Insert link'.
Comments
Comment #1
zilverdistel commentedComment #2
peter törnstrand commentedFixed in HEAD. Changed the "Node link" field to nodes "Title" field and rewrote the output to "Insert link" and checked "Link to node".