Changing fields returned from a search

14 views
Skip to first unread message

David Ryan

unread,
Jul 31, 2025, 7:21:00 AMJul 31
to ResourceSpace
Can anyone point me to the documentation for changing the fields returned from a search please?

It doesn't seem to be exposed in the UI, so I presume it's somewhere in the depths of a php file which I am happy to edit once I know where it is.

The default setting returns a thumbnail, title, country, date, ID, type and extension, but I want to see other metadata fields such as Notes and other custom fields that I have added.

Where is this configured within the application?

Thanks,

David
Screenshot from 2025-07-31 11-39-15.png

David Ryan

unread,
Jul 31, 2025, 7:36:42 AMJul 31
to ResourceSpace
From poking about it looks like list_display_fields is a good candidate, but I can't find where it's actually defined.  I can see a couple of references to it in assorted .php files, but not where is is defined to include those standard fields above.

Jim Kirkpatrick

unread,
Jul 31, 2025, 10:26:37 AMJul 31
to resour...@googlegroups.com
This is how I did it. In config.php:

# List Display Fields: array of fields to display on the list view
$list_display_fields=array(51,192,159,147,119,10,189); # ** SEE NOTE (1)
$list_search_results_title_trim=90;

NOTE (1)
 *
 * IMPORTANT! If any new fields are added to any of the the field arrays marked with '** SEE NOTE (1)' you should do the following:-
 *
 * 1)  If adding as an override for e.g a resource type or usergroup, ensure you add the field to
 *     the $data_joins array in config.php so that the columns are updated when resource data is changed
 *     by other users or scripts
 *
 *     e.g.
 *
 *     $data_joins[] = 8;
 *
 *  2) Once you have made the change, ensure that you run pages/tools/fix_resource_field_column.php, passing in the relevant field
 *    identifier to populate the columns
 *
 *    e.g.
 *
*/

You have to run this separately for every field you add to $list_display_fields

Jim


--
ResourceSpace: Open Source Digital Asset Management
http://www.resourcespace.com
---
You received this message because you are subscribed to the Google Groups "ResourceSpace" group.
To unsubscribe from this group and stop receiving emails from it, send an email to resourcespac...@googlegroups.com.
To view this discussion, visit https://groups.google.com/d/msgid/resourcespace/dec5ea1a-d293-4e81-8b1e-35180724d9ean%40googlegroups.com.

David Ryan

unread,
Jul 31, 2025, 3:56:10 PMJul 31
to ResourceSpace
Thanks for that Jim.  I'm more on track now.  I'm away for a few days but will get back into it after the weekend.
Reply all
Reply to author
Forward
0 new messages