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

_rune’s picture

Hi

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

_rune’s picture

A bit busy now, but we can discuss this further in this thread.
Rune

_rune’s picture

Assigned: Unassigned » _rune
Status: Active » Needs work

Will add this in a future release.

_rune’s picture

First working version with the feature is in trunk. Check the test module as an example.

Cheers
Rune

_rune’s picture

Status: Needs work » Closed (fixed)