Posted: May 12, 2015 at 1:18 pm
|
Does EE4 have a list view for its events, along with the calendar view that it comes with? Is it possible to toggle between the two on one page? |
Hi Joren, the default view for Event Espresso 4 events listing page is to show a list of events in reverse chronological order. The calendar view (events in a calendar) is available via the events calendar add-on. Have you had a chance to try out the demo for Event Espresso 4 on our demo site? If not, you can setup your own demo site in under a minute over on: Thanks — |
|
|
Ok. I can customize the templates correct? |
Hi Joren, you sure can. Here is information on getting those templates setup: https://gist.github.com/lorenzocaum/16aac08f099d7c154f04 We also have additional information on the templates here: https://eventespresso.com/2014/02/developers-corner-theming-event-espresso-4/ Note that the calendar itself does not run via customizable templates but it does have different parameters to change the default view (e.g. show a certain month by default). — |
|
|
Thanks Lorenzo. I followed the steps on that though, copying all of the plugin’s theme files into my own theme, renaming the two to “old-“, adding the pagination function, duplicating page.php and replacing content loop for the single/archive pages, and any event esperesso pages now just simply time out without any errors reported. Can be seen here http://simpleque.embold.net/events/ and runs fine on regular pages http://simpleque.embold.net/ If I remove the plugin theme files from my theme directory it runs fine. |
Hi Joren, does it begin to work if the pagination function is removed from your theme’s functions? I edited the tutorial since your prior reply on May 12th. — |
|
|
Seems to cause the time out either way (just tried commenting the pagination function out) |
Hi, Could you provide a copy of your theme as a zip file? You can upload to a service like Tinygrab or Cloudapp and then link to it here. — |
|
|
Here’s all of it, thanks! https://www.dropbox.com/s/zoy5aw8vv9kgwl6/simpleque.zip?dl=0 |
Thanks. I setup this theme on a testing site and the Event Espresso pages including the single event pages and events listing pages work as expected. http://cl.ly/image/0K3c2k1M1p0F Are you seeing anything in your site error_log? What kind of web hosting are you using? — |
|
|
Dang, it’s definitely the espresso_get_template_part( ‘loop’, ‘espresso_events’ ); that is killing it. Single event page comes up fine. No errors in the error log either. I’m using a personal web server, if you can’t think of anything else than I can try moving this to another server to see how it runs there. |
Hi Joren, That is strange. I uploaded the copy that you sent me and then went to the events listing page and it came right up. Could you try testing on the other server? — |
|
|
Finished moving this to another host, still has the same problem: http://www.que-que.com/events/ Also, how do can I update the license keys to another domain? This one is also only temporary. I don’t see a way to change this on my account. |
Hi Joren, you can request a release via your Event Espresso account page in the future. See your account page for your updated support license key: https://eventespresso.com/users/jorenrapini/#account-settings You can link it to your new site. Does the timeout issue occur with any other themes? — |
|
|
Added the plugin theme files to twenty fifteen, event list page just loops a “nothing found”. |
|
Can be viewed with twenty fifteen at http://www.que-que.com/events/ |
Thanks, I can see the issue even on a default theme. I’m going to double-check the starter templates again and I’ll share an updated copy to use. — |
|
Hi, could you try this version of the archive-espresso_events.php file in the Twenty Fifteen theme? http://cl.ly/code/2z3g203N3p3G/archive-espresso_events.php — |
|
|
Same problem 🙁 |
Hi Joren, I have not seen this issue before so I’m interested to know why this is happening. Could you provide us with temporary access to the original site or the new site? You mentioned that both are experiencing the same issue so having temporary access to one of them will be helpful. Please also include a temporary SFTP or FTP login so we can try swapping out the templates https://eventespresso.com/send-login-details/ Thanks again — |
|
|
Sent, thanks |
Hi, this should now be working. You can edit the order of the event elements here: /wp-content/themes/simpleque/template-parts/content-espresso_events.php is_archive refers to the event listings page. is_single refers to the single event page. Thanks — |
|
|
Thanks. I noticed that you moved all of the other content files to an “old” folder. I know I’ll need to make tweaks to them, so when I need to use one do I just put it in the “template-parts” folder to override the default? Or into the theme’s main folder? |
Hi, the files in the old folder are no longer needed. If you need to reposition the content, then edit the content espresso events file in the template-parts folder. — |
|
|
I wondered why I didn’t see a response on this one, for some reason it failed to post the comment: Another problem, calendar add on is enabled, tried adding [ESPRESSO_CALENDAR] both to a page and to a template ( via <?php echo do_shortcode(‘[ESPRESSO_CALENDAR]’);?> ) but there is no output at all. |
Hi Joren, It did post and I split it since it was a new question. We try to focus on a single issue per support post: https://eventespresso.com/topic/split-events-listcalendar-view/ — |
|
|
Back to the templates then for this one, for example I’d just like to alter the template content for espresso_events-datetimes, how would I do that? I just need to add a couple CSS classes for me to utilize. |
Alright, try copying that file from the starter templates folder here: /wp-content/plugins/event-espresso-core-reg/public/Espresso_Arabica_2014 … to your themes folder: /wp-content/themes/yourthemefolder Does that work or does it trigger the loading issue that was resolved earlier? As a sidenote, you may find this resource helpful for understanding how the starter templates work together: https://gist.github.com/lorenzocaum/0a35fe4997992fdb1dc5 — |
|
|
Ah ok never mind, that template file just spits out espresso_list_of_event_dates which I’m assuming is non-editable, so I’ll need to use espresso_event_date_obj to create my own layout I think |
|
PERFECT thank you! |
Hi, I’ll go ahead and mark this support post as resolved. If you have a new question, please create a new support post via our support forums: https://eventespresso.com/support/forums/ Thanks! — |
|
The support post ‘Events List/Calendar 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.