How to set the number of actions displayed in list view

16 views
Skip to first unread message

Patrick Reinhard

unread,
Aug 1, 2025, 11:56:25 AMAug 1
to Xataface
Hi Steve.

A customer of mine that still uses XF 2.2.5 asked me to display all the action buttons in list view instead of grouping those exceeding a given treshold (7, i guess) in a 'More' button with a drop-down list.

I could get this result modifying the Dataface_List_View.html file in /modules/g2/templates and changing maxcount=7 to maxcount=<some number greater than 7>, but I'm wondering if there is a better way to get the same result.

I know that in conf.ini can be added a section containing parameters for the G2 module, like this:

[modules_g2]
record_actions.size=20
top_left_menu_bar.size=20
record_subtabs.size=20


and it works

So I tried to add the following lines to the same section:

[modules_g2]
...
list_view_actions.size=20
result_list_actions.size=20
result_list_actions.maxcount=20
maxcount=20
size=20

but without success.

Can you remember if this parameter can be set in conf.ini, and how?

Thanks

Patrick


 

Patrick Reinhard

unread,
Aug 2, 2025, 8:04:48 AMAug 2
to Xataface
I looked a little deeper into the code and think that the answer is no.
That parameter cannot be set via conf.ini.
It would if line 44 in Dataface_List_View.html in  /modules/g2/templates was:

{actions_menu id="list-actions" id_prefix="list-actions-" category="result_list_actions" maxcount=$G2->get_property('result_list_actions.size', 7)}
and the section [modules_g2] of conf.ini contained the line result_list_actions.size=20

instead of:

{actions_menu id="list-actions" id_prefix="list-actions-" category="result_list_actions" maxcount=7}

Sorry for the hasty request and thank you again.

Patrick
Reply all
Reply to author
Forward
0 new messages