Hi, I'm using views to display a number of photos which are attached to a node for a photo gallery type thing. The thing is, I want to display an "edit this node" type link at the top of the page only once but when I add the link as a field it displays the link above every photo instead of just once at the top. So what I'm getting is about 5 links when I need only one at the very top.
I would just add the link to the views header but it needs to have the node ID in it so that the link will edit the correct node and I can't use field variables in the header.
So how can I link to the node edit page only once at the top of a view?
Here is a link to what is being displayed now, with multiple "Edit Pictures" links instead of just one at the top like I need: http://chrisvc.com/viewsQuestion.jpg
Thanks!
Comments
You can add a view with the
You can add a view with the following fields: Edit link, Image
Somewhere in your views you can select: show ... values start with ..... there you set show 1 value start with 0
Then add a view and attach that view to the view above, by adding a attachment view display. But in this attached view you set show 5 value start with 1 and remove the edit link. This will hide te first values which is already shown in the view above and you show only the image.
You get this:
View 1:
edit link
Picture
Attached view:
Picture
Picture
Picture
Picture
Thank you so much weblinq!!
Thank you so much weblinq!! I didn't know the purpose of the attachment features in Views until now. You are a lifesaver, it works perfectly!
And mcfilms, if you had read my original post you would see that the header field won't work for me because I need to access the node ID of the node currently being viewed. Thank you for trying to help though!
You're welcome. I am glad you
You're welcome. I am glad you solved this problem.
Header
On the left column of your view there is Header:none. Click on none and set the HTML you would like to use to create your link to "edit Photos".