Closed (fixed)
Project:
Auto Admin
Version:
6.x-1.8
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
16 Mar 2011 at 23:45 UTC
Updated:
5 Aug 2011 at 10:20 UTC
Hi,
I have a field of type "text" which can take quite a lot of data, and I don't want that to show on the list page. It doesn't appear to be possible (looking at _autoadmin_list_header() and autoadmin_query_get_list_query()) to add a key into the hook_autoadmin_schema() array to make it skip a field in list view.
I would normally create a patch, but I'm not quite sure where such a filter belongs, given that it has to remove both the heading and the query reading it. I was thinking maybe $schema['fields'] should be filtered to remove keys that are unwanted in autoadmin_init_page()?
I'll have a go at a patch if you like.
Thanks for a great module!
Comments
Comment #1
_rune commentedHi
Actually this feature is lying around half-baked in trunk, see these two commits:
* http://drupalcode.org/project/autoadmin.git/commit/cd90292
* http://drupalcode.org/project/autoadmin.git/commit/007afaa
It works by adding a configuration option called "list_display => array('field1', 'field2', 'fieldN'), ". I want it to support render callback functions too.
EDIT: Looking at i again I think it already has support for custom render callback function by using the "list_renderer" setting.
Cheers!
Rune
Comment #2
_rune commentedA bit busy now, but we can discuss this further in this thread.
Rune
Comment #3
_rune commentedWill add this in a future release.
Comment #4
_rune commentedFirst working version with the feature is in trunk. Check the test module as an example.
Cheers
Rune
Comment #5
_rune commented