Search found 8 matches

by dibeja
Mon 8. Nov 2004, 09:52
Forum: hacks & enhancements
Topic: new replacement tag {NAV_LIST_FROM}
Replies: 17
Views: 14094

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! ;)
by dibeja
Fri 5. Nov 2004, 10:39
Forum: hacks & enhancements
Topic: new replacement tag {NAV_LIST_FROM}
Replies: 17
Views: 14094

Mhhh... maybe cheating up a bit the code..


//------[FIND]-----------
if($thisactive) {
$css_list .= " id=\"".$class."_active\"";
$activated = 1;
}

//----------[AFTER ADD]-------
if(next($top_struct) == false){
$css_list .= " class=\"".$class."_last\"";
}


In this way, the last ...
by dibeja
Thu 4. Nov 2004, 17:37
Forum: hacks & enhancements
Topic: new replacement tag {NAV_LIST_FROM}
Replies: 17
Views: 14094

Eher's the link to the hack I've used:
http://www.phpwcms.de/forum/viewtopic.php?t=3747&highlight=container+div

By using this "container" div I can set some CSS properties, like "width" or "margin: auto", one time, instead of applying this properties through all the "system divs" (HeaderBlock ...
by dibeja
Thu 4. Nov 2004, 16:25
Forum: hacks & enhancements
Topic: new replacement tag {NAV_LIST_FROM}
Replies: 17
Views: 14094

I've used the page layout with HEADER FOOTER MAIN and RIGHT COL, "css div".

I've also used an hack which enclose the "system's div" (HeaderBlock, mainBlock etc.) into a "container" div.
by dibeja
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 ...
by dibeja
Wed 3. Nov 2004, 10:24
Forum: hacks & enhancements
Topic: new replacement tag {NAV_LIST_FROM}
Replies: 17
Views: 14094

Happy you found a solution! :lol:

I think I've coded a site with the requirement you've posted.
This is the url:
http://www.agribosco.com/index.php (it's a pre-release version).
Only the italian version is working

Every section has its sub-section menu on the right side of the page (except home ...
by dibeja
Tue 2. Nov 2004, 18:52
Forum: hacks & enhancements
Topic: new replacement tag {NAV_LIST_FROM}
Replies: 17
Views: 14094

"grounding" must be a value of 0 or 1 (0=disabled, 1=enabled) and it's ment to higlight the site section in wich an article resides.

For example:
if you have a link to an article in your homepage, but the article resides in your News site structure, with "grounding=1", when you follow that link ...
by dibeja
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 ...