Page 1 of 1

Menu freak out!! Section Header goes all white?

Posted: Fri Sep 22, 2006 9:19 pm
by yorgi63
hey all here is the link to a site I am laying out for my church.

I was adding the menu and when it got to add a section header it freaked out. No I do have driections and news as section headers so can anyone figure this one out?

If you check the url below I added a fake "news" item as "stuff" it came out fine as did anything else I posted except section headers. So why is the section header freaking out and going all white. Any thoughts? Anyone?

http://www.oldstonechurchucc.org/index.php

PS Stuff2 is also a sewction header.

Also the calendar has a weird thing.

Any info is appreciated.

Thanks
Yorgi

Re: Menu freak out!! Section Header goes all white?

Posted: Sun Sep 24, 2006 2:11 pm
by Dee
It seems the "news", "stuff" and "stuff2" items and calendar are gone?

There is an issue with section headers if they don't have child content when the cssmenu.tpl template is used for the menu:
http://dev.cmsmadesimple.org/tracker/in ... 3&atid=609
As a workaroud you can just add some inactive content.

Re: Menu freak out!! Section Header goes all white?

Posted: Tue Sep 26, 2006 4:06 pm
by yorgi63
I redid it and went away from making them section headers. Thanks for the info though... : )

George

Re: Menu freak out!! Section Header goes all white?

Posted: Thu Sep 28, 2006 4:04 pm
by yorgi63
Dee wrote: It seems the "news", "stuff" and "stuff2" items and calendar are gone?

There is an issue with section headers if they don't have child content when the cssmenu.tpl template is used for the menu:
http://dev.cmsmadesimple.org/tracker/in ... 3&atid=609
As a workaroud you can just add some inactive content.
Thanks! Do oyu have any idea why it says "false" above my calendar page? Not sure what the deal is.

http://oldstonechurchucc.org/index.php?page=calendar

The source code says  false but I can't find it in the content code. Also the the letters seem bunched up all of a sudden.

Thanks in advance

Re: Menu freak out!! Section Header goes all white?

Posted: Thu Sep 28, 2006 5:36 pm
by Dee
yorgi63 wrote: Thanks! Do oyu have any idea why it says "false" above my calendar page? Not sure what the deal is.
I have an idea :) I read about it in the forums yesterday:
http://forum.cmsmadesimple.org/index.ph ... l#msg37920


To get rid of it, delete this line of code on line 83 of function.displaycalendar.php:

Code: Select all

echo "DEBUG inline = ".(!$debug) ? 'false' : 'true' . '</br>';

Re: Menu freak out!! Section Header goes all white?

Posted: Thu Sep 28, 2006 5:40 pm
by yorgi63
I just fixed the calendar but owuld you know a solution to the bunching up and spacing. I have gone through the css and no dice
Here is the link http://oldstonechurchucc.org/index.php?page=calendar

Thanks in advance

Re: Menu freak out!! Section Header goes all white?

Posted: Thu Sep 28, 2006 5:51 pm
by Dee
Hmm, I'm not familiar with the calendar module at all.
As for the bunching up, when you look at the source code generated, this is the contents of the cell for the 29th:

Code: Select all

<a href="http://oldstonechurchucc.org/index.php?mact=Calendar,m4,default,1&m4year=2006&m4month=9&m4day=29&m4display=list&m4return_link=1&m4detail=1&m4lang=en_US&m4returnid=76&page=76">29</a><ul><li><a href="http://oldstonechurchucc.org/index.php?mact=Calendar,m4,default,1&m4year=2006&m4month=9&m4event_id=1&m4display=event&m4lang=en_US&m4returnid=76&page=76"></a></li></ul>
So, that contains both the "29"  link and an unordered list with one list item (an emtpy link, my guess is this list should contain the events on that day), which causes the 29 link to shift up.

As for the spacing: I think you have to create a stylesheet/style definitions to style the Calendar (table.calendar) yourself.
Here is an example I found on the forum (http://forum.cmsmadesimple.org/index.ph ... l#msg32456):

Code: Select all

/* CALENDER STYLES */

    /* make all links red */
    .calendar tr td a
    {
    color: red;
    }

    /* highlight "today" for the small calendar */
    .calendar-today
    {
    font-weight: bold;
    }

    /* display the "upcominglist" as one line per entry (assuming table_id='cal-upcominglist') */
    #cal-upcominglist .calendar-date-title
    ,#cal-upcominglist .calendar-summary-title
    {
    display: none;
    }

    #cal-upcominglist h2
    ,#cal-upcominglist .calendar-date
    ,#cal-upcominglist .calendar-summary
    {
    display: inline;
    margin-right: 5px;
    }

    /* tidy up text sizes for lists */
    #cal-list h1, #cal-upcominglist h1
    {
    color: red;
    font-size: 120%;
    }
    #cal-list h2, cal-upcominglist h2
    {
    font-size: 110%;
    }

    /** large calendar rules (assuming table_id='big') **/
    /* border on for #big */
    #big{
    margin: 5px;
    border-collapse:    collapse;
    border: 0px solid black;
    }

    /* nice squares for the #big table */
    #big th
    {
    border: 1px solid #999999;
    padding: 3px;
    width: 75px;
    }

    #big td {
    border: 1px solid #999999;
    vertical-align: top;
    padding: 3px;
    height: 75px;
    width: 75px;
    }

    /* format summaries nicely in #big */
    #big ul
    {
    margin: 0px;
    padding: 0px;
    padding-left: 5px;
    }

    #big li
    {
    list-style-type: none;
    padding: 0px;
    margin: 0px;
    }

    /* background colours for #big */
    #big td
    {
    background-color: #f2f2f2;
    }

    #big .calendar-day
    {
    background-color: #ffffff;
    }

    #big .calendar-today
    {
    font-weight: bold;
    background-color: #408CB3;
    }

    .calendar-event .calendar-date-title,
    .calendar-event .calendar-summary-title,
    .calendar-event .calendar-details-title
    {
    display: none;
    }

Re: Menu freak out!! Section Header goes all white?

Posted: Thu Sep 28, 2006 7:06 pm
by Dr.CSS
Hey Dee
That looks like the one from the Help in Calendar, it's at the bottom of it, it's supposed to be an example that can be copy/pasted into a new CSS for it.