Closed (fixed)
Project:
DraggableViews
Version:
6.x-3.x-dev
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
7 Apr 2009 at 08:27 UTC
Updated:
23 Jul 2010 at 10:49 UTC
I have 2 page's for my view. One to display it, the other for draggable views. Any chance of adding a edit tab like nodes have so that if I have the correct permissions I can see/click on the edit button and land on the draggable views page?
URL Example:
.com/normal-view - has tab to edit page
.com/normal-view/edit - has tab back that says view (this is the draggable view)
Comments
Comment #1
sevi commentedActually this isn't a task of DraggableViews.
Anyway, I tried my best because it sounds very useful.
Copy the code snippet to the header of your view (edit view: "Basic settings" section: "Header" option):
Replace your_view_to_view and your_view_to_edit with your views.
Greetings,
sevi
edit: arg(1) became arg(0)
Comment #2
sevi commentedWhat I forgot to say: You have to activate "PHP Filter" module in advance and choose Input format: "PHP code".
If you want to check permissions simply return on failure:
edit: choose input format: "PHP code"
Comment #3
mikeytown2 commentedAwesome, this is quite handy! Here's the code I used
Added the line break so the views hover edit button doesn't get in the way.
Comment #4
mikeytown2 commentedThis got me thinking... what if there where some sort of wizard for really simple draggable views? Select the view and it adds a new view page for DraggableViews and adds all the correct settings (like this code snippet) to the 2 views.
Comment #6
hefox commentedFor others looking into this
Should be able to use views menu settings, right?
Default menu task
viewname/view == default tab
viewname/edit == menu tab
Comment #7
butler360 commented"what if there where some sort of wizard for really simple draggable views?"
I would also find this extremely useful. That little PHP snippet is great for a site end-user.
And can the views menus be set to show or not show depending on permissions?
Comment #8
shopdogg commentedsubscribe