Menu freak out!! Section Header goes all white?

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
yorgi63
Forum Members
Forum Members
Posts: 108
Joined: Fri Aug 25, 2006 4:35 pm

Menu freak out!! Section Header goes all white?

Post 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
Dee
Power Poster
Power Poster
Posts: 1197
Joined: Sun Mar 19, 2006 8:46 pm

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

Post 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.
yorgi63
Forum Members
Forum Members
Posts: 108
Joined: Fri Aug 25, 2006 4:35 pm

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

Post by yorgi63 »

I redid it and went away from making them section headers. Thanks for the info though... : )

George
yorgi63
Forum Members
Forum Members
Posts: 108
Joined: Fri Aug 25, 2006 4:35 pm

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

Post 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
Dee
Power Poster
Power Poster
Posts: 1197
Joined: Sun Mar 19, 2006 8:46 pm

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

Post 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>';
Last edited by Anonymous on Thu Sep 28, 2006 5:40 pm, edited 1 time in total.
yorgi63
Forum Members
Forum Members
Posts: 108
Joined: Fri Aug 25, 2006 4:35 pm

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

Post 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
Dee
Power Poster
Power Poster
Posts: 1197
Joined: Sun Mar 19, 2006 8:46 pm

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

Post 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;
    }
Last edited by Anonymous on Thu Sep 28, 2006 5:54 pm, edited 1 time in total.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

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

Post 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.
Post Reply

Return to “CMSMS Core”