|
|
|
я что-то не до конца понял вопрос, но...
@test[section_no;page_lang;from;to]
^context[sections;
^load[named;up_menu.cfg]
^var[tmp_from;^default[$from;0]]
^var[tmp_to;^default[$to;^item[count]]]
^menu[
^eq[^eval[((^item[no]>=^var[tmp_from]) && (^item[no]<=^var[tmp_to]))];1;
^eq[^item[no];$section_no;
<a class=highlight href="http://^env[SERVER_NAME]/$page_lang/^item[url]">^item[menu_$page_lang]</a>
<span class=divider> ^; ^; |  ^; ^;</span>
;
<a class=mainlink href="http://^env[SERVER_NAME]/$page_lang/^item[url]">^item[menu_$page_lang]</a>
<span class=divider> ^; ^; |  ^; ^;</span>
]
]
]
]
@main[]
^macro[test;3;ru]
^macro[test;3;ru;2;4]
|