[SOLVED] Menu major weirdness
Posted: Thu Apr 15, 2010 5:11 pm
Hi
Im running cmsms v1.7 and my website was all running fine. But after working on the site today I noticed that on my first page the menu had disappeared. Now after a lot of panic and trying this and that I have found that the menu command {menu start_level="2"} no longer works on a page in friendly position 1 ie the first page. (there are subpages that should show).
Using {get_template_vars} on a page with only {menu start_level="2"} in the template I get this output in friendly position 1
SCRIPT_NAME = /index.php
app_name = CMS
sitename = name
lang =
encoding = utf-8
gCms = Object
cgsimple = Object
feu_smarty = Object
content_obj = Object
content_id = 496
page = ignore
page_id = ignore
page_name = ignore
page_alias = ignore
position = 00001
friendly_position = 1
But if I move it to friendly position 2 it now works and I get my menu:
SCRIPT_NAME = /index.php
app_name = CMS
sitename = name
lang =
encoding = utf-8
gCms = Object
cgsimple = Object
feu_smarty = Object
content_obj = Object
content_id = 496
page = ignore
page_id = ignore
page_name = ignore
page_alias = ignore
position = 00002
friendly_position = 2
menuparams = Array (3)
count = 1
nodelist = Array (1)
node = Object
This seems super weird, as all was working fine. I cannot think of anything in the rest of my site that could be causing this. I've tried the minimal template menu, and as above with a bare bones template and virtually no content.
Any clues?
Currently it seems I have to have an inactive page for page 1 to get my site back and running.
Many thanks
Nik
Im running cmsms v1.7 and my website was all running fine. But after working on the site today I noticed that on my first page the menu had disappeared. Now after a lot of panic and trying this and that I have found that the menu command {menu start_level="2"} no longer works on a page in friendly position 1 ie the first page. (there are subpages that should show).
Using {get_template_vars} on a page with only {menu start_level="2"} in the template I get this output in friendly position 1
SCRIPT_NAME = /index.php
app_name = CMS
sitename = name
lang =
encoding = utf-8
gCms = Object
cgsimple = Object
feu_smarty = Object
content_obj = Object
content_id = 496
page = ignore
page_id = ignore
page_name = ignore
page_alias = ignore
position = 00001
friendly_position = 1
But if I move it to friendly position 2 it now works and I get my menu:
SCRIPT_NAME = /index.php
app_name = CMS
sitename = name
lang =
encoding = utf-8
gCms = Object
cgsimple = Object
feu_smarty = Object
content_obj = Object
content_id = 496
page = ignore
page_id = ignore
page_name = ignore
page_alias = ignore
position = 00002
friendly_position = 2
menuparams = Array (3)
count = 1
nodelist = Array (1)
node = Object
This seems super weird, as all was working fine. I cannot think of anything in the rest of my site that could be causing this. I've tried the minimal template menu, and as above with a bare bones template and virtually no content.
Any clues?
Currently it seems I have to have an inactive page for page 1 to get my site back and running.
Many thanks
Nik