![]() |
Форум больше не используется. Присоединяйтесь к каналу #community-ru в Slack for TYPO3 community |
![]() |
#6 |
Продвинутый
|
![]()
temp.extraMenu = HMENU
temp.extraMenu { special = userdefined special.file = fileadmin/scripts/menu.php # дальше идут собственные параметры, основываясь на которых выводится меню special.pid = {$plugin.tx_ladymanager_pi1.listPid} special.singlePid = {$plugin.tx_ladymanager_pi1.singlePid} special.townStore = {$plugin.tx_ladymanager_pi1.pid} 1 { wrap = <UL>|</UL> NO.allWrap = <LI>|</LI> CUR = 1 CUR.allWrap = <LI>|</LI> CUR.linkWrap = <b>|</b> ACT = 1 ACT.allWrap = <LI>|</LI> } } fileadmin/scripts/menu.php <?php $townPid = intval($conf['pid']); $singlePid = intval($conf['singlePid']); $val = t3lib_div::_GP('tx_ladymanager_pi1'); $actTown = intval($val['city']); $townStore = intval($conf['townStore']); // в массиве с именем menuItemsArray должны хранится пункты меню $menuItemsArray = array(); $selectSetup = Array( 'pidInList'=>$townStore, 'orderBy'=>'sorting', ); $res = $GLOBALS['TSFE']->cObj->exec_getQuery('tx_ladymanager_city', $selectSetup); while( $row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res) ) { if( is_array($row) ) { $menuItemsArray[] = array( 'title'=>$row['name'], '_OVERRIDE_HREF'=>$this->parent_cObj->getTypoLink_URL( $townPid, array( 'tx_ladymanager_pi1[city]' => $row['uid'] ) ), 'ITEM_STATE' => ($actTown==$row['uid'] && ($GLOBALS['TSFE']->id == $townPid || $GLOBALS['TSFE']->id == $singlePid) ) ? 'CUR' : '', ); } } ?> |
![]() |
![]() |
|
|
![]() |
||||
Тема | Автор | Раздел | Ответов | Последнее сообщение |
typo3 и PHP 5 | dapissarenko | Общие вопросы | 1 | 16.11.2006 19:56 |
18-й номер PHP Inside пишет о TYPO3 | Valery Romanchev | TYPO3: маркетинг и PR | 0 | 20.07.2006 17:22 |
Динамическое меню и рисунок | Мельничук Сергей | Общие вопросы | 1 | 17.10.2005 12:55 |
TYPO3, PHP разработчик в Москве (full time) | Valery Romanchev | Работа и заказы / Job Offer and Request | 0 | 07.07.2005 01:26 |
MySQL & TYPO3 +PHP! Pomogite!!!!! | Artem Boldyrev | Общие вопросы | 2 | 30.06.2005 16:45 |