I thought this module was the one I was looking for, but there's an important point I don't know how to manage:

1/ when I create a translated version of a node on which a view is attached, change the language filter in the attached view: the attached view should be able to detect the language of the "hosting" node, then display only the nodes using the same language (is it even possible to do that with views?) ; 2/ or let the user (me) link the translated version of the initial node to another view, with a different language filtering.

My site in multilingual with two languages: french and english. A view with language filter activated (asking to display french nodes only) is attached to a french node. On the English version of that node, I can't change anything of the view linked to it : I can only still display french nodes only, or delete the language filter to display any node (french + english ones).

If you can't give any answer to that need now, please consider this as a feature request. At the time of writing, and as a non coder, only the Insert Views module allows me to easilly change the linked view, though not dynamically.

Comments

ErwanF’s picture

(FYI, I am the author of that post: "This is not an issue (!)".)

ak’s picture

Hi, I am running in a multilingual issue as well. If I understand right, I think mine is slightly different. I'm using views attach to attach some image nodes to an container node. The images have no language support et all or, optional are language neutral. The container node is translated in two languages. Attaching images to the container results in having images only in one language but losing the attachments in the other language.

As the image nodes are language neutral I would've expected them to show up on both languages as this is my desired behavior and images have no need to be translated in my case and just should show op in all languages.

Has any one got a solution to work this out? Is this module able to handle this? Is a other?

ak’s picture

The node_referrer module (http://drupal.org/project/nodereferrer) has an option that handels and solves my problem nicely. Under content types > manage fields of a > node_referrer field there's a checkbox that's labeled " Show on translations". If this one is checked the referrer nodes are consistent displayed through all language nodes, while they are referenced only once, to one language.

What the node_referrer module is missing, opposite to the views_attach module is the ability to display a complex view. The only available display options of node_referrer are to display node title, teaser or full nodes.

Maybe this function (checkbox on manage fields) can be adapted to the views_attach module.
Is anyone capable of doing this?

ak’s picture

I was able to work around my problem using Node reference views (http://drupal.org/project/nodereference_views). This one behaves as expected and lets me use views for display.

ak’s picture

Although I got something to work I'm not satisfied and would really like to hear if this behavior is by design or a new feature not implemented jet or am I doing something wrong?

Summary:
Problem: Galleries (translatable), Images (neutral). Gallery nodes got an attached view, images refer to galleries. Images are shown on gallery nodes, wonderful. As soon as the gallery node is translated to another language the view gets lost and no images show up on the translated gallery page.

Can it be done or not? Any advice?

Crell’s picture

Version: 6.x-2.1 » 6.x-2.2

I guess I'm a little unclear here how it's a problem. If you attach a language sensitive view to a node, it should filter to the same language as the site, which is what the node would be as well, wouldn't it?

ak’s picture

Hi there, thank's for your reply. Let me try to be more clear in where the problem occurs.

Scenario outline:

I've created some translatable gallery nodes. They've got an attached view to display referencing nodes. Referencing nodes are language neutral image nodes. So I'd like them to be displayed in the gallery no matter what language is chosen. By editing a image node I choose the parent gallery node in witch it should be displayed (Gallery selection is language sensitive here). So far all good. By visiting the gallery node the attached view does it's magic and displays all the referencing image nodes.

But, as soon as I translate the gallery node to a second language my attached view is empty on the translated version of the gallery node. My referencing images seem to reference to one gallery node id in one language only and not to all translations of that specific gallery node, as I would expect it natively to do.

The englisch gallery node remains with it's images in the attached view, the new translated german version of the gallery doesn't display any images in the attached view. The images are language neutral so they should be displayed no matter what language is selected on the site.

So my question still is: Is attached views designed to handle this properly? Could my settings be wrong somewhere? Can this be done in a different way? How do you handle this situation?

Thanks for any reply or suggestion.

Crell’s picture

Project: Views attach » Content Construction Kit (CCK)
Version: 6.x-2.2 » 6.x-2.6
Component: Miscellaneous » nodereference.module

hm. OK, I see the problem. The translation system works by creating "linked" but separate nodes for each language. Node reference only references to a single node. Views then filters on that node reference field, which doesn't know how to link to a cluster of related-translation-nodes.

Um. I have no clue how to fix that. :-( It's not really a views_attach issue per se. It's an issue with node reference only referencing to one node, not the node-translation-set, and then the nodereference Views argument handling only the single node. I don't know if that's fixable, but I think it would be a nodereference issue to start with.

So I'm moving this issue over to the CCK queue, in the hopes that someone over there has ideas on how to have one node reference to a node-translation-set rather than just a single node.

srobert72’s picture

Subscribing

arojoal’s picture

Subscribing

drupalok’s picture

subscribing!

bolecha’s picture

subscribing

Seighaus’s picture

subscribing , same problem as ak on #2!

Seighaus’s picture

My Problem (attach language neutral content to translatable content) was solved by this solution: http://drupal.org/node/855102#comment-3404492
Except I don't use a block but node attachment to attach my content.

I hope this helps some of you as well!