Support

Home Forums Event Espresso Premium EE4 Reports : Heading Title and Order

EE4 Reports : Heading Title and Order

Posted: November 7, 2016 at 8:32 am

Viewing 3 reply threads


mjpaynter

November 7, 2016 at 8:32 am

I can’t seem to change the report heading names using the gettext translation filter as suggested here: https://eventespresso.com/topic/export-registration-custom-fields/#post-218013. A few of my headers are exporting as such:

Time registration occurred[REG_date]
First Name[ATT_fname]
Last Name[ATT_lname]
Email Address[ATT_email]
Phone[ATT_phone]

I’m also wondering if there is a way to add rows to a report. Rows that indicate the event date and name, total number of attendees etc. Essentially an event overview heading section is what I’m trying to create as per my clients request.


Josh

  • Support Staff

November 8, 2016 at 2:24 pm

Can you post the code that you’re using to change the heading titles in a paste bin or gist, then post a link here to the code so we can take a look.

There are ways to add new columns, is that what you meant? Here’s an example that shows how to add a new row that shows the venue name:

https://gist.github.com/joshfeck/fe12aa10c1e8deef04607189b69636d3


mjpaynter

November 14, 2016 at 7:09 am

Here is a paste bin link to the translation filter I’m using. The Sold Out translation works, however, the others do not.

http://pastebin.com/DCYzA6Tq

Your suggestion adds a new column, Venue, to export file. I’m looking to add a new rows to the top of the file.


Josh

  • Support Staff

November 15, 2016 at 8:19 am

So only part of the text in the column head is translatable. For example, where you have this:

'Time registration occurred[REG_date]' => 'Registration Date/Time',

The part that’s translatable is the Time registration occurred text string.

So you can change your code to be this instead:

'Time registration occurred' => 'Registration Date/Time',

There isn’t currently a way to add new rows to the report, but you can open a pull request on Github to add some new hooks to help make that possible.

Viewing 3 reply threads

The support post ‘EE4 Reports : Heading Title and Order’ 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