• Resolved pagallery

    (@pagallery)


    Hi

    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.

    Thanks

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Jonathan Jernigan

    (@apexws)

    Hi @pagallery,

    Our shortcode allows you to set a default view in the free version as well as the Pro version. You can see the options in ours docs here: https://docs.piecalendar.com/article/5-shortcode-options

    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.

    Let me know if you have any other questions!

    Thread Starter pagallery

    (@pagallery)

    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?

    Plugin Author Jonathan Jernigan

    (@apexws)

    Are you looking for a calendar view like this?

    If so, you want to use this for your shortcode:

    [piecal view="dayGridWeek"]

    Thread Starter pagallery

    (@pagallery)

    That’s exactly what I want. I think Pie Calendar Pro is going to give me everything I need for the design I have in mind.

    Many thanks for the very quick replies

    Plugin Author Jonathan Jernigan

    (@apexws)

    Wonderful, you’re very welcome! I hope it achieves exactly what you’re after

    Thread Starter pagallery

    (@pagallery)

    I’ve tried to hide the controls on a Post rather than a Page and it didn’t work

    https://2023.3churches.uk/pie-calendar-information/

    It is post 239 so I used

    .page-id-239 .piecal-controls {display: none;}

    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.

    Can I target specific posts and, if so , how?

    Plugin Author Jonathan Jernigan

    (@apexws)

    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:

    .postid-239 .piecal-controls {display: none;}

    Let me know if this works

    Thread Starter pagallery

    (@pagallery)

    That works – thank you.

    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)

    Plugin Author Jonathan Jernigan

    (@apexws)

    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.

    [piecal taxonomy"category" terms="Concerts"]

    Here’s more information on this feature: https://docs.piecalendar.com/article/22-shortcode-options-pro-only

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Display Optiona’ is closed to new replies.