By wuertele on
I have a content type that has several CCK field group tabs. Most of these tabs display various fields from the node, but I would like for one of the tabs to display a views block. Is this possible?
I have a content type that has several CCK field group tabs. Most of these tabs display various fields from the node, but I would like for one of the tabs to display a views block. Is this possible?
Comments
Do you mean like
Do you mean like this?
http://drupal.org/project/viewreference
That's EXACTLY what I mean!
That's EXACTLY what I mean! Thanks!
Yes, set up a view with a
Yes, set up a view with a block display.
Give it an argument of Node: nid and set the default using "node id from url", restrict the valid node type to the one in question.
Now add the fields in the tab to the list of fields to display.
Under the content types "Manage Display" tab hide/disable the display of those same fields.
Nevets, does your solution
Nevets, does your solution use viewreference? If not, how does displaying the node also display the view block?
No, views reference is for
No, views reference is for adding a view to a node.
Since the view sets the default argument to node id using the url it will only display on the default pages for listing a node (ie path of the unaliased form node/{nid}). By setting it so it only validates for your content type it will only display for nodes of that type.