Closed (fixed)
Project:
Panels
Version:
6.x-3.9
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
23 Jan 2011 at 15:38 UTC
Updated:
3 Jan 2014 at 02:58 UTC
Jump to comment: Most recent
Comments
Comment #1
steviesky commentedWell 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.