Closed (fixed)
Project:
Country Pages
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
2 Apr 2015 at 09:49 UTC
Updated:
30 Apr 2015 at 09:24 UTC
Jump to comment: Most recent, Most recent file
We have additional fields for a country. For a country page we would like to have an edit tab to appear for users with the right permissions.
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | interdiff-2464327-5-7.txt | 1.51 KB | clemens.tolboom |
| #7 | make_edit_tab_available-2464327-7.patch | 2.37 KB | clemens.tolboom |
| #5 | make_edit_tab_available-2464327-5.patch | 1.66 KB | clemens.tolboom |
Comments
Comment #1
alan d. commentedMaybe as simple as this (untested)
Comment #2
clemens.tolboomI would indeed opt for a custom 'admin country page'. OTOH what if country == og node?
Comment #3
alan d. commentedThis is just a menu item pointing to the existing admin page, not sure if this is what you meant by custom.
This will probably will not integrate directly :(
Comment #4
clemens.tolboomComment #5
clemens.tolboomI've added new permission and needed hook_form_alter to redirect back to country/%country
Should we restrict edit to enabled countries same as view?
I can imagine editing a disabled country makes sense for a site editor.
Comment #6
alan d. commentedMaybe it is worth doing an access callback to keep things simple?
Feel free to add delete support, but albeit I am not sure how well this will work, i.e. again the redirects to consider (x2). Maybe worth it's own ticket.
Comment #7
clemens.tolboomAdded #2472199: Add delete operation to country
Attached patch implemented the central access function.
I'll commit this as I assume no further issues with this.
Comment #9
clemens.tolboom