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

zilverdistel’s picture

Version: 6.x-1.x-dev » 6.x-2.0-beta4
peter törnstrand’s picture

Assigned: Unassigned » peter törnstrand
Status: Active » Fixed

Fixed in HEAD. Changed the "Node link" field to nodes "Title" field and rewrote the output to "Insert link" and checked "Link to node".

Status: Fixed » Closed (fixed)

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