I have created two content types - content A and content B. Content B references content A via the Node Reference URL module. I have created a "node content" page display that is set to display on both Content A and B's full node view. I have custom automated URL aliases enabled for both content types.

The Node Reference is set so that only Content B nodes that reference a specific Content A node will be displayed on that Content A and B's full node view.

Currently, all Content B nodes content is being displayed on both Content A and B's full node views. They are not being restricted by the Node Reference.

The way the content types and view are used are as follows:
1. User creates Content A
2. User responds to Content A by creating Content B which references Content A
3. After creating Content B, the view will display the content of Content B both on the full node views of Content A and B nodes.

To put it better more tangible way, this is what a user would do:
1. User creates content A "Toy Story"
> On full node view of content A "Toy Story" there is a link to create a Content B with reference to "Toy Story"
2. User clicks link
3. User creates Content B referencing "Toy Story," called "CGI movie"
4. After creating "CGI movie," the "node content" view will display the fields from content B "CGI movie" underneath the full node view of both "Toy Story" and "CGI movie"

The issue is showing up as such:
1. Now, if user creates new content A "Jumanji" and creates node reference Content B "Human actors"
> On full node view for ALL "Toy Story," "CGI movie," "Jumanji," and "Human actors" the "node content view" displays both "CGI movie" and "Human actors" - it is NOT restricted by node reference node.

I hope I have explained my issue clearly enough, correct functionality is quite critical to my application.

Comments

Stomper’s picture

Making some progress but not really.

I have figured out how to restrict where the node content view is displayed, either on Content A or on Content B, but not both. I had to create a relationship "content: type" and an argument "node: nid" where the argument uses the relationship.

I can only set the node content view to display on only one of the two content types though I have set it to display on both based on "node content settings >> node types".

If I set the argument to use the relationship, the node content will show on Content A, but if I do not force the argument to use the relationship, it will show on Content B. I want it show on both and have set it to do so.

Suggestions appreciated.

Stomper’s picture

Any suggestions?

I have revised my node content view, and removed all flag-related arguments and relationships. I have still explicitly stated in the view for the node content to display on two node types, yet they still don't display on both, only one or the other.

merlinofchaos’s picture

It's pretty tough to understand what the views are doing; you have nicely described your content types, which is helpful, but an export of the view would help me determine what it is you're actually doing with the views.

merlinofchaos’s picture

Reading this, I'm really curious:

What is a "node content" view display? That's not something that ships with Views. Is this added by a module? If so, that's going to make it much less likely your question will be answered here.

merlinofchaos’s picture

Status: Active » Postponed (maintainer needs more info)
Stomper’s picture

The Views "node content" view type is provided by the Views Attach module (http://drupal.org/project/views_attach).

dawehner’s picture

Project: Views (for Drupal 7) » Views attach
Version: 6.x-2.9 » 6.x-2.x-dev
Component: node data » Code

Move to views attach module.

As you can read on http://drupal.org/node/571990 it's described there that this issue should be marked against the other modules.

merlinofchaos’s picture

Status: Postponed (maintainer needs more info) » Active
Stomper’s picture

Not a problem. I wasn't aware that it was from another module until you asked for me to confirm whether it was.

Thanks

_____________________

To summarize my issue

I have two content types, A and B. Content B references content A. I would like to print a view table using fields from Content B on both the node pages of Content A and B. The content in the view should only be related to the node it is printed on/referenced to.

In "node content" in my view, I have explicitly stated that the view should be embedded on both node content types, it still on prints on one, as of now, only on content A.

Thanks

Stomper’s picture

Suggestions?

Stomper’s picture

Is it possible to have the node content view to display both on the referenced and referencing node's full page view?

I'm still looking for an answer or suggestion to a solution. I have a node content view which is a table view that displays fields from a referencing node, I want this table view to be attached to both the referenced and referencing node.

moquankettzemb’s picture

Теперь мне стало всё ясно, благодарю за нужную информацию.

iancu35’s picture

Crell’s picture

Status: Active » Postponed (maintainer needs more info)

Keep in mind the context of where the view is displaying. If you have an argument for "noderef to type A" into which you pass a nid of type A (because you're on a type A node), then that works fine, and it sounds like it's doing what you want.

That same display, placed on a node of type B, will have no meaning and not give you anything useful, because you cannot pass a type A nid into it from there.

I don't really understand what it is you want to show on nodes of type B, but it would absolutely be a different display. reusing the same display is not going to work.

Crell’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)