Support

Home Forums Event Espresso Premium Event Overview: Hide/Show Columns Doesn't Remember Selection

Event Overview: Hide/Show Columns Doesn't Remember Selection

Posted: May 17, 2014 at 12:34 pm

Viewing 4 reply threads


Trevis

May 17, 2014 at 12:34 pm

It seems odd to have to set these preferences every time the Overview page loads… Is there a way to make it remember the user’s preferences? If not, is it possible to change the defaults? I realize I may have to edit core files but, it seems worth it.

Thanks!


Dean

May 19, 2014 at 4:51 am

Hi Trevis.

OK, well we use dataTables for those. Now my jQuery knowledge isn’t the best but in /wp-content/plugins/event-espresso/includes/event-management/event_list.php there is some jQuery approx line 350

Adding the following

“stateSave”: true,
“stateDuration”: 30 * 60 * 60 * 24,

should save the state via cookie for 30 days, but right now I cannot get it to function correctly.

You may have more luck than I with it.

http://datatables.net/examples/basic_init/state_save.html


Trevis

May 19, 2014 at 10:39 am

Can’t seem to get that to work for me either. Tried placing it in various spots in that area of the php file but, no luck.

Is there a way to just change the default columns that are displayed?


Dean

May 20, 2014 at 1:45 am

Yes, if you look at the same file on line 372

{ "bVisible": false, "aTargets": [ <?php echo $org_options['use_venue_manager'] == 'Y' ? '' : '3,' ?> 4 ] }

If you change it to something like

{ "bVisible": false, "aTargets": [ <?php echo $org_options['use_venue_manager'] == 'Y' ? '' : '3,' ?> 4, 5, 6, 7 ] }

It will hide columns by default.


Trevis

May 20, 2014 at 9:49 am

Nice—worked perfectly. Thanks so much!

Viewing 4 reply threads

The support post ‘Event Overview: Hide/Show Columns Doesn't Remember Selection’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso