I have been trying to create a page that a special admin user can log in and see all the actions that they can carry out.

So what i want to do is show a page with a panel where its something like this

Admin Page

Create new bus route
Create new map
Create new book type

If there is any solution to this or any other solutions that would be great.

Comments

steviesky’s picture

Status: Active » Fixed
Issue tags: +non-nodes

Well i have found after many hours a solution to this problem.

1) Install Views,Views Custom Field and Table wizard module. (may need the schema one too).
2) Once this is installed go to content mangement/table wizard/tables and add the table node_type.
3) Now go and create a new view but on the first page do not select node but scroll down and you will see Database table node_type
4) Now you will be able to select your type field and view the list.

I had one problem where my type had a underscore but when you call the page it has a - so i put the custom php field first (Views Custom Field) and inserted the following in the value field. <?php $data->type = str_replace("_", "-",$data->type); ?>
and excluded it from the view.
Then for the next field node_type: type
1) Rewrite the output of this field = Create a new [type]
2) Output this field as a link = link_path = node/add/[type]

Then you can add filters to remove certain content types, now you can add this to page and you have a list / sub set of create content types and now you can assign this to an admin role.

Hope this helps someone as i spent many hours of frustration dealing with this...i think this now can be used for any non-nodes and can probably be extended upon.

Status: Fixed » Closed (fixed)
Issue tags: -panels, -add new content, -non-nodes

Automatically closed -- issue fixed for 2 weeks with no activity.

Issue tags: +panels, +, +