Hi, going further on this thread, I now have the following:

Within Panels (node template):

  • article (by user role A)
  • uploaded images (by user role B)
  • form to upload image (only for user role B) (this is the comment module!) [these first 3 = a View of content type: article]
  • list of submitted text comments[View: discussion]
  • [outside Panels, I use Form In Block Module, with display only on content-type Article] a form to submit text comment (user role A and B) [content-type: discussion, with 2 fields 'Title' and 'Body Discussion']

On watching the article, ALL submitted text comments are displayed on EVERY article. What can I do to display only the "comments" submitted to the article? with NID as argument in the View: discussion, returns no result (since content-type: discussion doesn't (yet?) retrieve a nid?)

So, I think that form (discussion) needs a NID somehow that can be passed in the View???

Comments

merlinofchaos’s picture

Status: Active » Fixed

It's a little bit difficult for me to translate what you're describing into actual Panels objects and terminology. I'm going to make some assumptions about what I think you're trying to achieve.

So you're working with the node_view template, right? If so, your view should be using the "Content pane" display type. It should have a NID argument. In the "arguments" section of the display settings, you should have that argument set to receive "From Context". You should then select the NID from a Node context. What that means is that when the Panel offers the view a node context, the view will select the nid off the node context and use it in the view.

Then, when adding that view to your node_view template, it should have a selector for which node to use (and chances are you have only "Node being viewed"). Once that is set, the data should pass through the way you desire.

tds2012’s picture

Priority: Normal » Minor
Status: Fixed » Closed (fixed)

I made it work using Node Reference URL Widget Module!