Support

Home Forums Event Espresso Premium Alpha sorting custom messages

Alpha sorting custom messages

Posted: November 9, 2022 at 3:03 pm


tyler

November 9, 2022 at 3:03 pm

Hi,

I wanted to re-open a topic from a couple years back for a client. https://eventespresso.com/topic/alpha-sorting-custom-messages/

They would like to be able to alpha sort EE -> Messages -> Custom message templates. I know previously there was no snippet to enable this and I wanted to see if anything had changed!

Thanks!


Tony

  • Support Staff

November 10, 2022 at 9:15 am

Hi there,

Sorting Custom Templates by name in Event Espresso -> Messages -> Custom Message Templates, is possible with a snippet BUT the sorting will not work by default.

Meaning you can add a snippet like this to your site:

https://gist.github.com/Pebblo/d40d5baa9aac23dc7b1493ac4335bdbb

You can add that to a custom functions plugin on your site, we have some documentation on creating one here:

https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/

That snippet sets the Template name column to be sortable, so you can click on it to order by name ASC/DESC:

https://monosnap.com/file/OxDblPIzJFjwgyL7axeWluhIzjJHd7

However, it will not sort by Template name by default whe you click on Event Espresso -> Messages -> Custom Message Templates, you’ll need to click on the column name to set the order afterwards.

In your previous thread you highlighted the batch message modal listing the custom batch messages alphabetically, currently that isn’t possible without modifying the code. We may be able to add a filter to the query parameters used there to allow for this, I’ll check with the developers.

The support post ‘Alpha sorting custom messages’ 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