Posted: June 28, 2018 at 2:44 pm
|
Is there any way to edit the data that is passed in a data table to the user record? (admin-primary-mbox-tbl) We would like to see the event date in the table so that we don’t have to click on the Event Name every time to find out which date they attended. Thanks so much! |
Hi, Yes there is a way and it involves adding some custom PHP code to your site. To be clear though, this does not involve making direct edits to the EE4 core plugin, and it does require maintaining the customizations because a template file will be overridden. The basic outline of how to make this happen is as follows:
3) Make edits to the template so it displays the event date. One way to get the date that’s related to their registration is: |
|
|
Josh, I have done it and it works. Quick other question, Is there a way to drop the time off of the datetime field? |
|
I thought I had done it. 🙂 Once I hit re-fresh, it went back to the normal template. Are you sure I don’t need to make a copy of the template: And use that instead? |
Maybe you can clarify exactly which table view you’re looking to customize. Can you describe in more detail beyond “Is there any way to edit the data that is passed in a data table to the user record? (admin-primary-mbox-tbl)”? |
|
|
It is the table view on the admin WP user screen. I assume the data (view of) is passed by the wp-user integration add-on. On an inspect of the table in Chrome, it states the class of the table is admin-primary-mbox-dv. |
You’ll find that many table classes within the WP admin will have The code/instructions I gave you are for modifying the list of events within the individual Contact records found in Event Espresso > Registrations > Contact List. If you also/instead want to override the template for the registrations list table displayed on user profile page, you’ll copy over the eea-wp-users-registrations-table.template.php file into your custom plugin, and this code will tell the WP user add-on to look for your custom template:
|
|
The support post ‘User Integration – Table Data Stored on User Record’ 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.