2009-08-21, 00:37:36
That would be magic if the structure between the pages could also be in the menu. If a page has a child, it could be nice that the link to the page appears in a sub-menu as a <ul> liste, incuded in the main <ul>.
The following warnings occurred: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "threadviews_countguests" - Line: 745 - File: showthread.php PHP 8.1.31 (Linux)
|
Sub Menu
|
2009-08-21, 00:37:36
That would be magic if the structure between the pages could also be in the menu. If a page has a child, it could be nice that the link to the page appears in a sub-menu as a <ul> liste, incuded in the main <ul>.
2009-08-21, 01:36:38
That would be ace actually. It would make using a JS accordion for the man nav very easy!
2009-08-21, 01:47:54
should this not be done on the template side?
I dont find the included menu functions suitable for most of my work so i've rewritten and included the new function in the template code. Would be quiet easy to loop through pages with the menu option set and then find all the children. M
2009-08-21, 02:11:52
Surely, the whole idea of a CMS is to make things easier for everyone, including the theme developer.
Having the function built in would be way faster for the development than having to code it in the theme.
2009-08-21, 02:43:52
I have added this line to mark the item with a special class "child"
Code: if ($page['parent'] != '') { $classes .= " child"; } |
« Next Oldest | Next Newest »
|