Closed (fixed)
Project:
Viewfield
Version:
6.x-1.2
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
24 Oct 2011 at 20:29 UTC
Updated:
21 Nov 2011 at 20:13 UTC
I understand the Viewfield module allows one to embed the view itself into a node. I'd like to instead display a LINK to the view.
I have already created the view and I want it to be linked on every node of the specific content type but want the view to automatically generate based on the nid of the node. I want to only have to define the view for the viewfield for the content type once, so that when ever a new node is created, the view link is automatically included and view handles the arguments based on the new node nid.
How?
Comments
Comment #1
keithm commentedSounds like you just want to embed a link to a view. The Link project provides a field to do this.
Comment #2
Stomper commentedWill the Link module enable me to set a "path template" that will automatically adjust for each view it's printed on?
I have a view that contains nodes referencing a given node, I'd like the link to be placed in the content type itself that once printed to screen will link to the correct view depending on the node the link is on.
Comment #3
keithm commentedUsually you can arrange this sort of thing using Views paths and tokens in your link.
Comment #4
Stomper commentedI've worked with tokens and paths before so I think I know what your saying.
I think a better way of saying what I need is whether the links themselves can include a "wildcard" that will automatically swap in the nid of the node it's print it on, and use that to generate the link/create the view?
Comment #6
Stomper commentedNot fixed