PieCalendar looks super easy to use and I’m hoping that the Pro version will enable me to achieve what I want.
Can I set the calendar to display in week classic mode on one page of a website without the viewer having the option to change the view and then have the same calendar displayed on another page this time as say a month with the viewer having the option to change the display?
I’m assuming that in the Pro version, I can colour code events depending on the category of the post.
With that, you could easily do what you mentioned with a calendar on each page, each with different default views.
In terms of disallowing the user to change the view, you’d simply need to hide the controls with CSS. The CSS to do that is quite simple:
.piecal-controls {display: none;}
You could modify the CSS to be something like this to only hide the controls on that specific page:
.page-id-13 .piecal-controls {display: none;}
Of course, want to change “13” to whatever your page ID is.
A setting to hide the view controls doesn’t yet exist, but I’ll be glad to note that in our feature requests board if it’s something you’d like to see in the future.
Thanks for the super fast response. Unless I’m missing something, it isn’t possible to use a view of “classicWeek”, the only week view option is “listView” – is that right?
and it had no effect. I tried adding !important and that didn’t work either.
If I put a blanket .pie-controls {display: none;} that doesn’t seem to work on Pages or Posts, but if I add !important it works on both Pages and Posts.
The CSS class changes on a post. The way to find out which class to use on a page or post is to inspect the page, scroll up the top and you’ll see in the <body> tag, there’s a class that looks like this:
So in the page you linked, the CSS would be like this:
I’m still experimenting with the calendar because it could be a very central part to the design of this new site – so at the moment any pages/posts you look at will not be pretty!
I’ve put the Calendar in my header – restricted so that the current week shows and people can’t change the view. I have got a post where I planned to let people see a month of the calendar and give them the opportunity of changing the view etc.
I was planning on setting up a special header for that post which didn’t have the week view of the calendar in it. I went to the post to get the post ID and found that the week view setting on the header calendar weren’t applying and the calendar in the main body of the post wasn’t displaying at all.
I’m assuming that the week view setting in the header calendar got over-ridden by the view setting in the post even though that calendar wasn’t displaying. It looks as though you can’t display the calendar twice on a single page/post. I don’t suppose there are many occasions when someone would want to display a calendar twice on a page but thought I’d mention it in case the Pro version allows you to pick which categories you want displayed. Then I suppose someone might want two calendars on the same page. (I will be purchasing the Pro version in the next few days)
Right, the calendar only loads once if there are two shortcodes on the page.
Pro version 1.1.0, which we just released yesterday, does indeed offer taxonomy filters. This would enable you to create a shortcode like the example below, which then only displays events from the “Concerts” category.