[Typo3] Typo3 India Beta

Valery Romanchev it at webmed.ru
Sun Feb 20 15:51:15 CET 2005


Hi 
> 
> I like the Javascript TMenu at http://typo3assist.com/ I'd 
> like to use such a pagetree menu for a simple T3-intranet, 
> either with javascript or just like in the T3 Backend.
> I haven't done any JS menus yet, so suckerfish-code doesn't 
> get me anywhere.
> Maybe someone knows an example or has done exactly this type 
> of T3-backend-like navigation before and is willing to post 
> it here ...





Windows Explorer Style Menu Nested CUR IFSUB problem
05-04 21:46  by  Rick Jones,   mail(AT)phone011.com     <||||><

User List:

I'm trying to perfect a Windows Explorer tree style menu. I'm having a
problem with displaying a different icon next to the .CUR page when .IFSUB
or .ACTIFSUB is true.

The following code creates a menu to 5 levels for the "Green Template" using
standard Typo3 icons (I had to add an open folder icon.) If the CUR page has
sub-pages, it should be the folder_open.gif instead of a the
current_mountpoint.gif.

I tried to make a nested IFSUB in temp.tree_menu.1.CUR, but that doesn't
work. Any suggestions?

Sincerely,

Rick Jones (<||||><)

P.S. - I would just like to say that after months of searching and testing I
feel like I have found the Holy Grail with Typo3. It's like the difference
between a garage band and the sympony.

There must be some scary smart people working on this project!

-----------------------
The mailing list archive is found here:
http://typo3.org/1422.0.html


*****************************************************

temp.tree_menu = HMENU
temp.tree_menu.wrap = <table cellSpacing="0" cellPadding="0"
border="0"><tr><td nowrap><img src="t3lib/gfx/i/_icon_website.gif"><font
face="arial,helvetica,sans-serif"
size=2>www.YourDomainName.org</font></td></tr>|</table>

temp.tree_menu.1 = TMENU
temp.tree_menu.1 {
NO {
allWrap = <tr><td nowrap>|</td><tr>
before = <img src="t3lib/gfx/ol/join.gif">|*|<img
src="t3lib/gfx/ol/join.gif">|*|<img src="t3lib/gfx/ol/joinbottom.gif">
linkWrap = <img border=0 src="t3lib/gfx/i/pages.gif"><font
face="arial,helvetica,sans-serif" size=2>&nbsp;|</font>
ATagBeforeWrap = 1
}
CUR = 1
CUR {
allWrap = <tr><td nowrap>|</td><tr>
doNotLinkIt = 1
before = <img src="t3lib/gfx/ol/join.gif">|*|<img
src="t3lib/gfx/ol/join.gif">|*|<img src="t3lib/gfx/ol/joinbottom.gif">
linkWrap = <img border=0 src="t3lib/gfx/i/pages_mountpoint.gif">&nbsp;<font
face="arial,helvetica,sans-serif" size=2
style="background-color:#000080;color:#ffffff;">|</font>
IFSUB = 1
IFSUB {
linkWrap = <img border=0 src="t3lib/gfx/ol/minus.gif"><img border=0
src="t3lib/gfx/i/folder_open.gif">&nbsp;<font
face="arial,helvetica,sans-serif" size=2
style="background-color:#000080;color:#ffffff;">|</font>
}
ATagBeforeWrap = 1
}
IFSUB = 1
IFSUB {
allWrap = <tr><td nowrap>|</td><tr>
linkWrap = <img border=0 src="t3lib/gfx/ol/plus.gif"><img border=0
src="t3lib/gfx/i/folder.gif"><font face="arial,helvetica,sans-serif"
size=2>&nbsp;|</font>|*|<img border=0 src="t3lib/gfx/ol/plus.gif"><img
border=0 src="t3lib/gfx/i/folder.gif"><font
face="arial,helvetica,sans-serif" size=2>&nbsp;|</font>|*|<img border=0
src="t3lib/gfx/ol/plusbottom.gif"><img border=0
src="t3lib/gfx/i/folder.gif"><font face="arial,helvetica,sans-serif"
size=2>&nbsp;|</font>
ATagBeforeWrap = 1
}
ACTIFSUB = 1
ACTIFSUB {
allWrap = <tr><td nowrap>|</td><tr>
linkWrap = <img border=0 src="t3lib/gfx/ol/minus.gif"><img border=0
src="t3lib/gfx/i/folder_open.gif"><font face="arial,helvetica,sans-serif"
size=2>&nbsp;|</font>|*|<img border=0 src="t3lib/gfx/ol/minus.gif"><img
border=0 src="t3lib/gfx/i/folder_open.gif"><font
face="arial,helvetica,sans-serif" size=2>&nbsp;|</font>|*|<img border=0
src="t3lib/gfx/ol/minusbottom.gif"><img border=0
src="t3lib/gfx/i/folder_open.gif"><font face="arial,helvetica,sans-serif"
size=2>&nbsp;|</font>
ATagBeforeWrap = 1
}
}

temp.tree_menu.2 = TMENU 
temp.tree_menu.2 < temp.tree_menu.1
temp.tree_menu.2 {
NO.beforeWrap = <img src="t3lib/gfx/ol/line.gif">|
IFSUB.before = <img src="t3lib/gfx/ol/line.gif">
ACTIFSUB.before = <img src="t3lib/gfx/ol/line.gif">
CUR.beforeWrap = <img src="t3lib/gfx/ol/line.gif">|
}

temp.tree_menu.3 = TMENU 
temp.tree_menu.3 < temp.tree_menu.1
temp.tree_menu.3 {
NO.beforeWrap = <img src="t3lib/gfx/ol/line.gif"><img
src="t3lib/gfx/ol/line.gif">|
IFSUB.before = <img src="t3lib/gfx/ol/line.gif"><img
src="t3lib/gfx/ol/line.gif">
ACTIFSUB.before = <img src="t3lib/gfx/ol/line.gif"><img
src="t3lib/gfx/ol/line.gif">
CUR.beforeWrap = <img src="t3lib/gfx/ol/line.gif"><img
src="t3lib/gfx/ol/line.gif">|
}

temp.tree_menu.4 = TMENU 
temp.tree_menu.4 < temp.tree_menu.1
temp.tree_menu.4 {
NO.beforeWrap = <img src="t3lib/gfx/ol/line.gif"><img
src="t3lib/gfx/ol/line.gif"><img src="t3lib/gfx/ol/line.gif">|
IFSUB.before = <img src="t3lib/gfx/ol/line.gif"><img
src="t3lib/gfx/ol/line.gif"><img src="t3lib/gfx/ol/line.gif">
ACTIFSUB.before = <img src="t3lib/gfx/ol/line.gif"><img
src="t3lib/gfx/ol/line.gif"><img src="t3lib/gfx/ol/line.gif">
CUR.beforeWrap = <img src="t3lib/gfx/ol/line.gif"><img
src="t3lib/gfx/ol/line.gif"><img src="t3lib/gfx/ol/line.gif">|
}

temp.tree_menu.5 = TMENU 
temp.tree_menu.5 < temp.tree_menu.1
temp.tree_menu.5 {
NO.beforeWrap = <img src="t3lib/gfx/ol/line.gif"><img
src="t3lib/gfx/ol/line.gif"><img src="t3lib/gfx/ol/line.gif"><img
src="t3lib/gfx/ol/line.gif">|
IFSUB.before = <img src="t3lib/gfx/ol/line.gif"><img
src="t3lib/gfx/ol/line.gif"><img src="t3lib/gfx/ol/line.gif"><img
src="t3lib/gfx/ol/line.gif">
ACTIFSUB.before = <img src="t3lib/gfx/ol/line.gif"><img
src="t3lib/gfx/ol/line.gif"><img src="t3lib/gfx/ol/line.gif"><img
src="t3lib/gfx/ol/line.gif">
CUR.beforeWrap = <img src="t3lib/gfx/ol/line.gif"><img
src="t3lib/gfx/ol/line.gif"><img src="t3lib/gfx/ol/line.gif"><img
src="t3lib/gfx/ol/line.gif">|
}

page.10.marks.MAIN_MENU < temp.tree_menu




---
Best regards,
Valery Romanchev
freelance TYPO3 web-developer
romanchev at list.ru
it at webmed.ru
Moscow, Russia
  





More information about the TYPO3-english mailing list