You can add this line to your code for the "first" element of the list:
//----------[AFTER ADD]-------
if(prev($top_struct) == false){
$css_list .= " class=\"".$class."_first\"";
}
I haven't tested it yet, but it should work.
For your second question, I should think about it! ;)
Search found 8 matches
- Mon 8. Nov 2004, 09:52
- Forum: hacks & enhancements
- Topic: new replacement tag {NAV_LIST_FROM}
- Replies: 17
- Views: 14094
- Fri 5. Nov 2004, 10:39
- Forum: hacks & enhancements
- Topic: new replacement tag {NAV_LIST_FROM}
- Replies: 17
- Views: 14094
- Thu 4. Nov 2004, 17:37
- Forum: hacks & enhancements
- Topic: new replacement tag {NAV_LIST_FROM}
- Replies: 17
- Views: 14094
- Thu 4. Nov 2004, 16:25
- Forum: hacks & enhancements
- Topic: new replacement tag {NAV_LIST_FROM}
- Replies: 17
- Views: 14094
- Thu 4. Nov 2004, 09:53
- Forum: hacks & enhancements
- Topic: new replacement tag {NAV_LIST_FROM}
- Replies: 17
- Views: 14094
Here it'is the template
(for Marco): yes. I wanted the menu to show only section directly below the current section, cause same section has subsection in it.
For this site I have two templates (all css driven):
page layout 2 column, the small one on the right.
1 - home page:
<!-- HEADER: -->
<div id="logo"><h1 ...
For this site I have two templates (all css driven):
page layout 2 column, the small one on the right.
1 - home page:
<!-- HEADER: -->
<div id="logo"><h1 ...
- Wed 3. Nov 2004, 10:24
- Forum: hacks & enhancements
- Topic: new replacement tag {NAV_LIST_FROM}
- Replies: 17
- Views: 14094
- Tue 2. Nov 2004, 18:52
- Forum: hacks & enhancements
- Topic: new replacement tag {NAV_LIST_FROM}
- Replies: 17
- Views: 14094
- Tue 2. Nov 2004, 15:53
- Forum: hacks & enhancements
- Topic: new replacement tag {NAV_LIST_FROM}
- Replies: 17
- Views: 14094
new replacement tag {NAV_LIST_FROM}
Hi, i needed a css list menu (like NAV_LIST_TOP) acting like BREADCRUMBS:site_level so I cheated up a bit the NAV_LIST_TOP code.
Here's the code
function css_list_from($struct, $struct_path, $level, $grounding=0, $homelink="Home", $class="list_top", $starting="0", $link_to="index.php ...
Here's the code
function css_list_from($struct, $struct_path, $level, $grounding=0, $homelink="Home", $class="list_top", $starting="0", $link_to="index.php ...