Diocese of Scranton

EventOn City should appear with Address

Assigned to
Ryan Ross, Developer at Diocesan Ryan R. Veronica Alvarado, Project Manager at Diocesan Veronica A.
Notes
Address
City, ST

If there is no city or state, don't display them

Comments & Events

Ryan Ross, Developer at Diocesan
This is a tricky one, and I worked on this for a bit and found dead ends, so I'm tabling it for now.

EventOn does offer limited template overriding ability.  Problem is, those templates only scratch the surface.  Those templates jump off to do several actions and functions to create their environment.

I was able to find the file in the plugin (eventon_eventCard.php) that houses the logic for this section.  Unfortunately, City and State are not included in the event object (from what I could tell).  There is however a location taxonomy ID, which should be sufficient to accomplish the task.  However, evo_get_term_meta('location_city', $object->locTaxID) did not retrieve the City like the documentation suggested.  What I found particularly odd was the fact I couldn't easily find Address, City, or State in the database.  It wasn't in the terms and terms_meta tables like I expected.

So, parking this one for later.
Connie Wisdo
Veronica,

Do you have a suggestion for a workaround on this?  

Thanks,
Connie
Veronica Alvarado, Project Manager at Diocesan

Connie,


As it turns out, EventOn actually finds the address for the location using only the Address field and does not take into account the City, State, or Country when finding the Google address. 

Honestly, I'm not quite sure why those fields even exist at this point. But I have updated the editing guide with a note and image on what fields to/not to fill out to display the correct Google Map address.
Veronica Alvarado, Project Manager at Diocesan
Since there is no way to display the fields and I have added a section in the editing guide on how to make the address display correctly in the field and map, I am marking this one as complete. 
Veronica Alvarado, Project Manager at Diocesan
Veronica Alvarado completed this to-do.