Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

All other Modules

Discuss all other Modules here.

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

Event Calendar CSS


Reply

16 Posts   3881 Views

Avatar
markotondria

5 May 2009 at 8:24am (Last edited: 5 May 2009 8:40am), Community Member, 13 Posts

well, thats the thing - other modules ARE working ok, blog, forum etc..
The base_tag is
mydevdomain.com/mydevfolder/SilverStripe

and when I view the output on the event calendar page, the module output begins at
<!-- Primary Content added to fit BHG framework-->

and I can't see any evidence of require statements that are there in the Calendar.ss file..

Avatar
UncleCheese

5 May 2009 at 8:45am 4085 Posts

Can you check the difference on how the other modules are including requirements versus the event calendar?

Avatar
markotondria

5 May 2009 at 9:22am Community Member, 13 Posts

Hrm, it would appear that the blog and forum modules are styled with the blackcandy default template (which is fine for what I need).
Using the Live HTTP headers firefox addon, I can't even see that the javascript and css are even being requested from the server...
Very odd.,.

Avatar
markotondria

7 May 2009 at 7:13am Community Member, 13 Posts

ok, well I think I'm a little clearer as to what's going on, but would warmly appreciate any pointers as to a fix:

>Since the last posts I have transferred all into some new space, where SilverStripe/ is in the root. Other issues have been smoothed out by doing this..

The problem is that I am pulling the whole page though some ajax and putting it into a 'content' div, that sits below my main page header, etc..
So when the page.ss fires, it includes a new base_href, title, meta tags, etc..
I *had* previously amended the page.ss so that it omitted the doctype, html and head tags, so that these would not appear half way down my page when page.ss ran...
When I run the site with the original page.ss, then viewing it outside of my content-div holding set up, event-calendar works fine.
Running it through the content page set up however causes some very odd things to happen, such as messing with js on the original page (actually causing an IDd element to be 'null', and breaking the script that populates the content-div in the 1st place :/ ).

Although this is now more than an event_calendar-specific problem, do you have any ideas on how I can solve my base_href problem, short of moving everything into my SilverStripe folder ?

Thanks as ever, Mike :)

Avatar
UncleCheese

7 May 2009 at 7:18am 4085 Posts

You need to modify your htaccess file. Change the RewriteBase from / to /Silverstripe

Avatar
markotondria

7 May 2009 at 7:25am (Last edited: 7 May 2009 8:45am), Community Member, 13 Posts

lol, thats exactly what I would have told someone had they detailed the same problem as I have :)..

the RewriteBase currently IS "/SilverStripe"
Funny thing is, it does seem the work apart from screwing up my js on the main page.
Im even src'ing the javascript with the full url as to side-step any base/redirect issues.. :(

My deadline for this somewhat not-unknown client is drawing near and Im still on a very steep part of the SilverStripe learning curve..

At the moment, I'm trying to load all my root files into the SilverStripe folder, then run the main site from there. Hopefully this might nix any further base issues - sound like a plan ?

Thanks again for your quick reponses - I feel kinda lost and a little overwhelmed with ss at the moment, I do appreciate your being there !
/\\

** PROBLEM HACKINGLY SOLVED **
Yep, that did it moving the main site files into the SilverStripe directory and using the original page.ss with the base href in.
The javascript breaking was because the jQuery I was using to ajax the silverstripe content into my main page was conflicting with the jQuery libraries invoked when the ss content reached the page. http://coolwebdeveloper.com/2009/01/null-object-errors-using-jquery-javascript-library/ provided a fix.

Avatar
a-tech

25 November 2009 at 12:05pm Community Member, 39 Posts

Yeah I just had this problem, and it was due to a conflict with the Jquery script being called by calendarwidget and that of my base page.

I just replaced the first line in CalendarWidget.ss with the relative link to the root/jsparty file

ie

<% require javascript(jsparty/jquery/jquery-packed.js) %>

Avatar
tchintchie

29 May 2011 at 6:01am Community Member, 63 Posts

hi all!

I´m running the event calendar and works perfectly. Only thing is I´d like to change the size of it´s headlines and <p> tags because somehow they´re so terribly small and our major users are retirees!!! ;-)
I checked the calendar.css and found some font-size definitions but nothing for the <p> tag (talking about event description btw). Can anyone tell me where to find the corresponding css lines or do I have to set new ones?