Event date not displaying on event page
Permalink Browser Info Environment
I select the event page from within calendar and I get to a new page. I get and <h1>Event Title>
<p><span class="event-description"></span></p>
but I get no event date within the page
running
concrete - 5.4.5
Calendar - 1.3.4
<p><span class="event-description"></span></p>
but I get no event date within the page
running
concrete - 5.4.5
Calendar - 1.3.4
Type: | Discussion |
---|---|
Status: | New |
I am running a theme, but the calendar is installed separately within the packages folder. I do see the calendar_event.php you speak of, and yes it does include <div><?php echo $event->getDateString();?></div>
but it doesnt print out anything. I add dummy html text within the tags and it doesnt print out anything to my pages, as though this page isnt the page printing out the request.
but it doesnt print out anything. I add dummy html text within the tags and it doesnt print out anything to my pages, as though this page isnt the page printing out the request.
empty
I installed a calendar_event.php file to my theme and now I am able to display a date, but the date is December 31, 1969, 4:00 pm for all events. So it must not be reading something correctly.
Im not sure what i have to modify on my pages, themes, settings in order to get it to display a valid date.
Im not sure what i have to modify on my pages, themes, settings in order to get it to display a valid date.
If you edit your event and look at its properties, does it have a start and end date?
I do get a event start and end date in the event page properties page. Here is a link to my Calendar page in actionhttp://c5.westop.org/eaop/about/events-calendar/...... I also built a mini 3 event side calendar for all other non calendar pages as seen onhttp://c5.westop.org/eaop/
So the dates for the events are there, but somehow the individual event page is not pulling the data correctly.
So the dates for the events are there, but somehow the individual event page is not pulling the data correctly.
Testing 5.4.1 with the latest calendar doesn't duplicate this problem. I can't really know more unless I have access to the site.
which access in needed ftp or concrete 5 login
This is what we did to get calendar to work.
Removing "parent" from line7 of site/packages/calendar/blocks/controller/page_types/calendar_event.php
$ce = CalendarEvent::getByID($c->getCollectionParentID(), 'ACTIVE');
Removing "parent" from line7 of site/packages/calendar/blocks/controller/page_types/calendar_event.php
$ce = CalendarEvent::getByID($c->getCollectionParentID(), 'ACTIVE');
If you don't, then it should be using the calendar_event.php file found in packages/calendar/page_types/calendar_event.php, which should contain this string. Does it? If you look in your page is there an empty DIV after your h1 tag ?