Jump to:

10850 Posts in 2517 Topics by 1793 members

All other Modules

SilverStripe Forums » All other Modules » Event Calendar Formatting Question

Discuss all other Modules here.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 700 Views
  • owaiskl
    Avatar
    Community Member
    16 Posts

    Event Calendar Formatting Question Link to this post

    Hey,

    I've just been doing some design work on a silverstripe website. I just updated the silverstripe to the latest version, have installed an event calendar module and a blog module and a custom theme. My question is, because I am using a sidebar on the Page.ss default, the sidebar also appears on the page for the event calendar. This is problematic because the calendar browser thing then splits the content space into further columns. Is there way to create a page with a custom sidebar so the events calendar only has two columns or perhaps a way to place the calendar browser in the sidebar of the default Page.ss template? Hopefully, my question makes sense.

    Any help is much appreciated

  • UncleCheese
    Avatar
    4085 Posts

    Re: Event Calendar Formatting Question Link to this post

    The templates that come with EventCalendar are just there to get you started. You should be using your own templates to work with your site design. You can do that by creating parallel templates in your mysite or theme directory.

    /your_theme/templates/Layout/Calendar.ss
    /your_theme/templates/Layout/CalendarEvent.ss

    Copy over the content and alter as you see fit.

  • owaiskl
    Avatar
    Community Member
    16 Posts

    Re: Event Calendar Formatting Question Link to this post

    I did try to create parallel themes, but I'm not still not sure where exactly I would make the edits to disable the sidebar from the default style of the page.ss and have the calendar page formatted with it's own sidebar? So basically, I get how to edit the look of the calendar in the calendar.ss file and attached css, but am not sure how to change the layout of the page structure outside the 'wrapper' it seems to load in. Sorry if I'm not getting something here, but I did try to figure it out myself with no luck so far.

    Thanks.

  • UncleCheese
    Avatar
    4085 Posts

    Re: Event Calendar Formatting Question Link to this post

    I usually put the $ClassName value in the body class so I can target different page templates with CSS, e.g.

    .Calendar #sidebar {display:none;}

  • owaiskl
    Avatar
    Community Member
    16 Posts

    Re: Event Calendar Formatting Question Link to this post

    Thanks for the help, I figured out another way to do it too. Now that I've finished that, I can finally get some sleep!

    700 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.