Показать сообщение отдельно
Старый 13.09.2005, 11:26   #12
Lato Sergey
Продвинутый
 
Регистрация: 19.08.2005
Сообщений: 39
По умолчанию

Пришлось пойти обходным путем:

TS =====================

temp.page_menu = HMENU
temp.page_menu {
special = userfunction
special.wrap = <a href=\"{$MENU_HREF}\">{$MENU_HEADER}</a> сайта SITE.RU
special.userFunc = user_SectionMenu->write

stdWrap.prepend = TEXT
stdWrap.prepend.data = page:img_menu_title
stdWrap.prepend.wrap = |<ul>
stdWrap.outerWrap = |</ul>
...
}


PHP=====================

class user_SectionMenu {

function set_menu_title($title, $url, $template) {

$template = str_replace('{$MENU_HREF}', $title, $template);
$template = str_replace('{$MENU_HEADER}', $href, $template);

$GLOBALS['TSFE']->page['img_menu_title'] = $template;

return true;
}

function write($content, $conf) {
...
$this->set_menu_title($some_title, $some_url, $conf[wrap]);
...
}

}
Lato Sergey вне форума   Ответить с цитированием