Support

Home Forums Event Espresso Premium What is the EE4 equivalent to EE3's [EVENT_CUSTOM_VIEW]

What is the EE4 equivalent to EE3's [EVENT_CUSTOM_VIEW]

Posted: January 9, 2019 at 7:19 am

Viewing 5 reply threads


mireaux2019

January 9, 2019 at 7:19 am

I am in the process of migrating a site from EE3 to EE4. I have followed the migration documentation. But now I need to figure out what to replace EVENT_CUSTOM_VIEW with. There are several areas in the site that list out courses with EVENT_CUSTOM_VIEW. Here is an example:

[EVENT_CUSTOM_VIEW template_name=”home-events” limit=5 category_identifier=others order_by=date(end_date) show_expired=false]

How would I convert this for EE4? Thank you.


Josh

  • Support Staff

January 9, 2019 at 7:21 am

Hi,

The equivalent is in the Events table template add-on. Here’s a link to its documentation:

https://eventespresso.com/wiki/events-table-view-template-add-on/


Tony

  • Support Staff

January 9, 2019 at 7:31 am

Hi there,

[EVENT_CUSTOM_VIEW] is a shortcode for custom templates add-on:

https://eventespresso.com/product/custom-templates/

The closest equivalent we have for EE$ is the table view:

https://eventespresso.com/product/eea-events-table-view-template/

and Grid view addon:

https://eventespresso.com/product/eea-events-grid-view-template/

However, the template_name=”home-events” parameter means the template is loading a custom ‘home-events’ template for the add-on which could really be any output.

Check in your /wp-content/uploads/espresso/templates/ directory for any signs of ‘home-events’

It may also be within your theme.

How you convert over depends on what those templates are doing, if they are tables you can use the table view template and if grids, use the grid template, and/or create your own using either of those as a base.


mireaux2019

January 9, 2019 at 7:52 am

Thank you. Would you happen to know if purchasing this add-on and using ESPRESSO_EVENTS_TABLE_TEMPLATE will output the exact same thing as EVENT_CUSTOM_VIEW did, like will our CSS and templates still be accurate? Or will I have to redo shortcodes/html/CSS to get the lists to look the same as they did before?

I’m asking because I found out using ESPRESSO_EVENTS outputs the majority of the data I need, I would just need to tweak the output a bit and adjust CSS. Is it possible to modify what ESPRESSO_EVENTS displays?

Basically, if it’s a quick change I’ll get the add-on. If it’s going to require a bunch of modification still, might as well go the route without the add-on.


Josh

  • Support Staff

January 9, 2019 at 7:57 am

The [ESPRESSO_EVENTS_TABLE_TEMPLATE] template outputs mostly different markup and completely different CSS. The main similarity is it and the EE3 equivalent are both marked up using html tables.

It is possible to modify what ESPRESSO_EVENTS displays. If it’s a matter of changing what’s displayed there, and the order of elements (like put the dates before/after the event description, or show/don’t show the event description) you can change the options in Event Espresso > Events > Templates. Further customizations can be done with CSS. If you need customizations beyond what the options and CSS offer, then it’s also possible to create a completely new template and use the provided template tags located in the Event Espresso plugins /public/ folder.


mireaux2019

January 9, 2019 at 8:02 am

Ok, I will try modifying ESPRESSO_EVENTS then. Thank you both for the info!

Viewing 5 reply threads

The support post ‘What is the EE4 equivalent to EE3's [EVENT_CUSTOM_VIEW]’ 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