10376 Posts in 2191 Topics by 1708 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 614 Views |
-
Event Calendar Formatting Question

2 December 2009 at 10:05am
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
-
Re: Event Calendar Formatting Question

2 December 2009 at 10:44am
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.ssCopy over the content and alter as you see fit.
-
Re: Event Calendar Formatting Question

2 December 2009 at 2:02pm
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.
-
Re: Event Calendar Formatting Question

2 December 2009 at 2:55pm
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;}
-
Re: Event Calendar Formatting Question

2 December 2009 at 3:08pm
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!
| 614 Views | ||
|
Page:
1
|
Go to Top |

