| Author |
Message |
kocho
Joined: 14 Jun 2006 Posts: 13
|
Posted: 14 Jun 2006 - 9:09 pm Post subject:
adding space and [ ( , [)
Subject description: how to add empty space so I can indent menu..and add "[" |
|
|
heya!
here is my menu, actually two of them. tried many variations but no success; i'm a bit new to TS-ing, learning on daily basis but I'm kinda frustrated with being stucked with this for few days..
Menu 1
(looks like this: Link1 Link2 Link3 Link4; I want like this:
Link1 | Link2 | Link3 | Link4
and on .act i will make the css to change the color of the text, plus I want to have it like this - for example if clicked on Link1:
[ Link1 ] Link2 | Link3 | Link4
| Line: |
Code: |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
| |
lib.mainMenu = HMENU
lib.mainMenu.entryLevel = 0
lib.mainMenu.wrap = <ul>|</ul>
lib.mainMenu.1 = TMENU
lib.mainMenu.1.NO {
allWrap = <li>|</li>
stdWrap.case = upper
}
lib.mainMenu.1.ACT = 1
lib.mainMenu.1.ACT{
allWrap = <li class="act">|</li>
stdWrap.case = upper
}
|
|
Show complete code
|
Menu 2:
(I want indent for level1 of 3 spaces, for level2 another 3 or so)
| Line: |
Code: |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
| |
lib.subMenu = HMENU
lib.subMenu.entryLevel = 1
lib.subMenu.wrap = <div id="sub-nav"><ul id="sub-level1">|</ul></div>
lib.subMenu.1 = TMENU
lib.subMenu.1.NO {
wrapItemAndSub = <li>|</li>
ATagParams = style="background:none;"|*|style=""
}
lib.subMenu.1.ACT = 1
lib.subMenu.1.ACT {
wrapItemAndSub = <li class="act">|</li>
ATagParams = style="background:none;"|*|style=""
}
lib.subMenu.2 = TMENU
lib.subMenu.2.wrap = <ul id="sub-level2">|</ul>
lib.subMenu.2.NO {
allWrap = <li>|</li>
ATagParams = style="background:none;"|*|style=""
}
lib.subMenu.2.ACT = 1
lib.subMenu.2.ACT {
allWrap = <li class="act">|</li>
ATagParams = style="background:none;"|*|style=""
}
|
|
Show complete code
|
Thanks for looking!
regards,
kocho |
|
|
Back to top
|
|
|
radina
Joined: 21 Mar 2006 Posts: 29
|
Posted: 20 Jun 2006 - 2:21 pm Post subject:
|
|
|
You can use like free space.
For example this-> | || |*||*| |
shows menu1 || menu2 || menu3.
I home help you
Radina |
|
|
Back to top
|
|
|
rodmanm
Joined: 20 Apr 2006 Posts: 6
|
Posted: 21 Jun 2006 - 8:06 am Post subject:
Re: adding space and [ ( , [)
Subject description: how to add empty space so I can indent menu..and add "[" |
|
|
| Quote: |
Menu 1
(looks like this: Link1 Link2 Link3 Link4; I want like this:
Link1 | Link2 | Link3 | Link4
and on .act i will make the css to change the color of the text, plus I want to have it like this - for example if clicked on Link1:
[ Link1 ] Link2 | Link3 | Link4 |
I have exact the same kind of menu on the second level and it works with this TS:
#Menu on the second level
subparts.MENU_MIDDLE = HMENU
subparts.MENU_MIDDLE.entryLevel = 1
subparts.MENU_MIDDLE.1 = TMENU
subparts.MENU_MIDDLE.1 {
NO.before = |
NO.after = |*||*| |
ACT.before = [
ACT.after = |*||*| ]
NO.allWrap = <span class="menu_middle"> | </span>
ACT = 1
ACT.allWrap = <span class="menu_middle_act"> | </span>
} _________________ Typo3 4.0 | SUSE/Linux 9.0 | Apache 2.0.49 | MySQL 4.0.18 | PHP 4.3.4 |
|
|
Back to top
|
|
|
|