Russian TYPO3 community

Russian TYPO3 community (http://forum.typo3.ru/index.php)
-   Общие вопросы (http://forum.typo3.ru/forumdisplay.php?f=12)
-   -   Подскажите: если нет подстраниц, как вывести текст по умолчанию вместо меню? (http://forum.typo3.ru/showthread.php?t=7953)

ScorpionGhost 08.09.2009 02:41

Подскажите: если нет подстраниц, как вывести текст по умолчанию вместо меню?
 
Проблема:
Слева блок сайт предназначен для отображения меню второго уровня. Меню формируется если имеются подстраницы, когда подстраниц нет - то блок пуст. Как прописать в шаблоне, чтобы автоматически, если нет подстраниц, вместо генерации меню выводить заранее заданный текст, либо картинку?
Нигде не смог найти нужного ответа.
Код меню:

temp.LEFT_MENU = HMENU
temp.LEFT_MENU.entryLevel = 1
temp.LEFT_MENU.1 = TMENU
temp.LEFT_MENU.1 {
NO.allWrap = <li><span> | </span></li>
ACT = 1
ACT.allWrap = <li><span class="act"> | </span></li>
}

shuman 08.09.2009 05:59

10.0.2 Common item states for TMENU, GMENU and IMGMENU series:
These properties are in common for TMENU, GMENU and IMGMENU series. That means they are not used by for instace the JSMENU.

Property:
Data type:
Description:
Default:

IFSUB
Boolean / (config)
Enable/Configuration for menu items which has subpages
0

ACT
Boolean / (config)
Enable/Configuration for menu items which are found in the rootLine
0

ACTIFSUB
Boolean / (config)
Enable/Configuration for menu items which are found in the rootLine and has subpages
0

CUR
Boolean / (config)
Enable/Configuration for a menu item if the item is the current page.
0

USR
Boolean / (config)
Enable/Configuration for menu items which are access restricted pages that a user has access to.
0

SPC
Boolean / (config)
Enable/Configuration for 'Spacer' pages.

Spacers are pages of the doktype "Spacer". These are not viewable pages but "placeholders" which can be used to devide menuitems.



Note: Rollovers doesn't work with spacers, if you use GMENU!
0

USERDEF1
Boolean / (config)
Userdefined, see .itemArrayProcFunc for details on how to use this.

You can set the ITEM_STATE values USERDEF1 and USERDEF2 (+...RO) from a script/userfunction processing the menu item array. See HMENU/special=userdefined or the property .itemArrayProcFunc of the menu objects.


USERDEF2
Boolean / (config)
(See above)



[tsref:(cObject).HMENU.(mObj_itemStates)]



Order of priority: USERDEF2, USERDEF1, SPC, USR, CUR, ACTIFSUB, ACT, IFSUB

Azim 12.09.2009 16:16

temp.LEFT_MENU.stdWrap.ifEmpty = HTML
temp.LEFT_MENU.stdWrap.ifEmpty.value = <p>No submenu here...</p>


Часовой пояс GMT +4, время: 19:04.

Работает на vBulletin® версия 3.8.1.
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Перевод: zCarot