Closed (fixed)
Project:
Views (for Drupal 7)
Version:
6.x-2.8
Component:
node data
Priority:
Minor
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
7 Feb 2010 at 00:46 UTC
Updated:
13 May 2010 at 15:30 UTC
Hello,
When using
rowstyle->Fields
Is there anyway to access and render the other aspects of a node, like $links or associated comments?
I'm in a situation where using "Fields" makes more sense than rendering "nodes" but I still need access to the node's related links and comments [and possibly other data fields]. Is this simply not possible? Or is there a way to do this that I am missing?
Thank you kindly for your time and help,
Sebastian.
Comments
Comment #1
dawehnerYou have to do some custom coding, perhaps you could integrate this in a field.
First you have to create a fake node object.
Then you have to use this fake node object to create the node links, and render it with theme('links', $node->links);
Comment #3
schedal commentedThanks Dereine, I will look into your suggestion.
Another another solution, which is perhaps easier.
Either from a node-[name].tpl.php or from a ConTemplate:
call the View you want with print views_embed_view ('view_name', 'default', arg(0)); where arg = argument.
It's a little ass backwards, but it DOES work; also combines well with NodeQueue to make a Pseudo ViewsQueue...
Using this method I can arrange the links/comments area either before or after the fields I need generated.
Comment #4
merlinofchaos commentedA better solution than views_embed_view would be views_attach module