Page 2 of 2

Re: Menu problem - repeated <ul> - XHTML validation

Posted: Mon Jan 14, 2008 2:30 pm
by cnymike
Mark and others, Mark asked to see the page structure and what I've realized is that I have two Section Headers, one after another and this is probably what is causing this right? But I don't know how to remedy that.

1 Home Top simple navigation + left subnavigation + 1 column Content
2 Calendar Events Top simple navigation + left subnavigation + 1 column Content
3 Contact FCAP Top simple navigation + left subnavigation + 1 column Content
4 Break Top simple navigation + left subnavigation + 1 column Section Header
4.1 -  FCAP Main Menu Top simple navigation + left subnavigation + 1 column Section Header
4.2 -  About FCAP Top simple navigation + left subnavigation + 1 column Content
4.2.1 -  -  History Top simple navigation + left subnavigation + 1 column Content
4.2.1.1 -  -  -  Story of FCAP Top simple navigation + left subnavigation + 1 column Content
4.2.2 -  -  Purpose Top simple navigation + left subnavigation + 1 column Content
4.2.3 -  -  Beliefs Top simple navigation + left subnavigation + 1 column Content

etc...

Am I doing something wrong by  having two Section Headers side by side at 4 and 4.1?

What is the suggested course of action? I haven't tried Ronnie's suggestion yet but want to know if what I'm attempting to do with my page structure is inherently incorrect and if so, what is the better way to accomplish this. If what I'm doint is OK, then how can I get my page to validate?

thanks.

Michael

Re: Menu problem - repeated <ul> - XHTML validation

Posted: Mon Jan 14, 2008 2:49 pm
by cnymike
I've  been fiddling with the page structure, changing the Section Headers to Seperators instead and it does not change anything as far as validating the page. I still get the same 5 errors reported earlier in this thread. I wish I understood coding better so that I could comprehend what is happening here.

Mark, when I remove the stuff you had indicated in red, the page still doesn't validate, but I only get 5 errors instead of 7 errors. For now, I've put those tags back in the template so that I don't get things too screwed up and don't remember what I've done.

here is the domain again,  http://www.fcap.org and Just tell me what you want to see and I'll get it up here for you.

Here is the link to the W3C validator 
http://validator.w3.org/check?uri=http%3A%2F%2Fwww.fcap.org%2F&charset=%28detect+automatically%29&doctype=Inline&group=0

Michael

Re: Menu problem - repeated <ul> - XHTML validation

Posted: Mon Jan 14, 2008 3:20 pm
by cnymike
KO, i went into menu manager, clicked on files templates tab, opened the simple_navigation.tpl file and saved it as simple_navigation2.tpl as you suggested. I removed the beginning and end tags. I then went into my page template and changed the menu call to simple_navigation2.tpl but when I looked at the page, I got this error..

Code: Select all

string(91) "Smarty error: unable to read resource: "module_file_tpl:MenuManager;simple_navigation2.tpl""
So I must have done something wrong.

Re: Menu problem - repeated <ul> - XHTML validation

Posted: Mon Jan 14, 2008 3:37 pm
by RonnyK
cnymike,

did you pull it inside the DB-templates first, if so, forget the .tpl at the end...... That is only valid as the template is a file template.

Ronny

Re: Menu problem - repeated <ul> - XHTML validation

Posted: Mon Jan 14, 2008 4:00 pm
by cnymike
RonnyK, thanks for clarifying that. Yes I  had named the new database template "simple_navigation2.tpl" and was calling it with the same name. Once I changed the database template name to "simple_navigation2" and then called the new menu using "simple_navigation2" the menu worked.

However after doing all that, the validation errors persist. In fact, a new issue  has risen, now because of getting rid of the first instance of and the last instance of in the menu template, my menu has shifted to the left...no doubt the CSS is affecting it differently now that a "level" of list has been removed. does that make sense?

there must be something else that I've added somewhere that is causing this since some people (Mark) are reporting that they do not see this error on their similarly configured pages. On the other hand, there are still other people who are seeing the same issue so I really am so confused at this point that I don't know what is going on. But it seems like it must be relatively simple...we're talking about a unordered list here that is being built on the fly using a couple of conditions , right?

If someone who is better at looking at code then I am could look at the validation page and reference the source code on the vaildation page, I'm hoping the cause of the error will jump out at them.

http://validator.w3.org/check?uri=http%3A%2F%2Fwww.fcap.org%2F&charset=%28detect+automatically%29&doctype=Inline&ss=1&group=0

Re: Menu problem - repeated <ul> - XHTML validation

Posted: Mon Jan 14, 2008 5:05 pm
by Dr.CSS
You have 4. break as not shown in me I bet so yes having 2 section headers will throw it off, try...

{menu template='simple_navigation.tpl' start_element='4.1' show_root_siblings='1'}

W/o ul li on each end or with as it should work...

Or you can change 4. Break to the section header below, you may have used a section header not shown in the menu and then put one below it thinking if you called it in the menu it wouldn't work but if it's just not shown in menu and not set as inactive you can call it this way or by name and it will show...

4. FCAP Main Menu  (section header)
4.1 About FCAP
4.2 page
etc. etc....

Then use the menu call as it came...

Re: Menu problem - repeated <ul> - XHTML validation

Posted: Mon Jan 14, 2008 7:56 pm
by KO
I allways had problems with those extra tags and not validating if I used section header as "collecting item" for other pages. Only way around has been creating special template or ignoring validation problems. I never had 2 section headers so no experience from that. And i think i used then start_level="2" to show right menu items. Also CSS styles might need changes to look right.

Re: Menu problem - repeated <ul> - XHTML validation

Posted: Mon Jan 14, 2008 8:06 pm
by RonnyK
Same here KO, I use a modified menu-template as well, as a single "Section Header" already kills validation.....


Ronny

Re: Menu problem - repeated <ul> - XHTML validation

Posted: Mon Jan 14, 2008 8:15 pm
by cnymike
Mark,

You did it! I only had to make one more modification to what you suggested...

You suggested..

Code: Select all

{menu template='simple_navigation.tpl' start_element='4.1' show_root_siblings='1'}
but that showed my menu un-collapsed, so I added a collapse parameter...

Code: Select all

{menu template='simple_navigation.tpl' start_element='4.1' show_root_siblings='1' collapse='1'}
And the menu looks right, the page validates and you've solved the mystery.

How'd you do that?

THANK YOU MARK!. You're a genius. I'm going to applaud you for that!

Michael

Re: Menu problem - repeated <ul> - XHTML validation

Posted: Mon Jan 14, 2008 10:02 pm
by Dr.CSS
Thanks...

Oh, I forgot you might have wanted it collapsed, it was showing all open...

I've had a bit of experience with the menu manager and page structure, I guess... ;)

Just love problem/puzzle solving...

Re: Menu problem - repeated <ul> - XHTML validation

Posted: Mon Jan 14, 2008 10:20 pm
by cnymike
Well this is definitely something that should be worked into the docs wiki as it has plagued several others as well.

Michael