Hi, As I have read, node reference URL widget place its code to content. But I have custom node.tpl.php for every content type. I have deleted the code

<div class="content"><?php print $content; ?></div>

from the template file and replaced it with different custom fields.

In that case the view, created from node reference URL widget, doesn't show up. I have tried to embed that view with views_embed_view function, but for some reason it didn't work.

Maybe I have messed up the code for embedding or something. Please help me with that. 10x.

Comments

quicksketch’s picture

Hi @ispasov, typically I don't help with theming or custom coding in the issue queue, but I think I've answered this question once before in this issue: #472752: show node instead of referenced nodes title.

ispasov’s picture

I don't think I have understood you correctly but my problem is that I do not want to see the original node while I write a reference node. The problem is that when I save the new node it doesn't show below the main node, which is referenced.

quicksketch’s picture

Oh, in that case this question isn't even about this module, it's a question about Node References in general. This module only provides a widget, so it only affects the display of the field on the node form. You should be able to print out the parts that you want easily enough. Install the Devel module, then look at the Devel tab on your nodes. That will tell you the available variables so that you can print them out.