I'm new to October CMS and MyCalendar looks good. But something fundamental isn't working - None of the events created in the birthday cake 'Events' backend are showing up in the front end.
Adding 'Events Component', then 'Month Component' or 'List Component' doesn't display any events.
table.mycal { width:100%; } {% component 'EvList' %}
{% component 'Month' events = MyEvents %}
<p> </p>
{% component 'Events' %}
Is a category called 'MyEvents' required?
Also, by default it's displaying a month to view as date numbers only, not boxes like in the screen shots - how can this be changed?
It sounds like your layout for the page does not have {% styles %} in the header or you chose "NO" in the month component settings for "Load Style Sheet". If you are using the default layout and theme then borders should show. If you are using a different theme or layout then you may need to add style to the table elements of the calendar.
As for events not showing, Did you set "Use Permission" to yes or no? If set to yes try setting it to "NO".
Try adding {{ dump(MyEvents) }} to the page and post the output of that.
Last updated
Thanks for the fast reply - adding {% styles %} to the header has fixed the layout.
In the Events component 'Use Permissions' is set to 'No'. Then adding {{ dump(MyEvents) }} to the page returns Object variables NULL.
The theme is called 'SOLID' by Carlos Alvarez - looking at it's headers there are many manual statements, is it missing other standard October CMS techniques? Maybe it's missing something similar to {% styles %} to load plugin data (guesswork of a newb :-} )?
Try theses settings for Events Component:
- Maximum Popup Title Length = 100
- Use Permission = No
- Past Days = 60
- Future Days = 60
Create a Category "Test" in MyCalendar backend.
Create an Event:
- Title: Testing
- Published: ON
- Date: 2016-01-20
- Time: 06:30:00
- Details: Testing
- Link: (blank)
- Categories: test (checked)
Then refresh your month view to see if events apear. Also, Do you have users or roles plugin installed?
Last updated
Multiple combinations of component options attempted, new category created, all without success.
Inspired by your spot on {% styles %} in the header suggestion and to check whether it might be a theme issue, the theme was changed back to October CMS Demo - newly entered events are now being displayed.
So there are five events in the backend, three pre theme change and two post theme change. Only the two post theme change events are displayed in the front end.
Looking at the data, table 'kurtjensen_mycal_events', there doesn't appear to be any field which might cause this issue. In the table user_id is '1' and is_published is '1' for all records. All other fields look similar in all records. Interestingly, there's no field to relate event to cotegory...
Is there a relation somewhere else, maybe to do with October CMS core, rather than MyCalendar, which is causing pre/post theme change related issues?
Last updated
Are you creating events on the front or back end? If front end then the scripts might not be loaded by theme.
kurtjensen_mycal_categorys_events stores the many to many relation.
kurtjensen_mycal_categories stores categories.
Check your Theme layout for these resources near footer of page:
<script src="{{ [
'assets/javascript/jquery.js',
'assets/vendor/bootstrap/js/transition.js',
'assets/vendor/bootstrap/js/alert.js',
'assets/vendor/bootstrap/js/button.js',
'assets/vendor/bootstrap/js/carousel.js',
'assets/vendor/bootstrap/js/collapse.js',
'assets/vendor/bootstrap/js/dropdown.js',
'assets/vendor/bootstrap/js/modal.js',
'assets/vendor/bootstrap/js/tooltip.js',
'assets/vendor/bootstrap/js/popover.js',
'assets/vendor/bootstrap/js/scrollspy.js',
'assets/vendor/bootstrap/js/tab.js',
'assets/vendor/bootstrap/js/affix.js',
'assets/javascript/app.js'
]|theme }}"></script>
{% framework extras %}
{% scripts %}
Last updated
1-6 of 6