Download  |  Search  |  Log in  |  FAQ  |  Memberlist  |  Online  |  TYPO3.org Developer Resource
Home » TypoScript » Menu
Post new topic   Reply to topic Page 1 of 1 [3 Posts] adding space and [ (&nbsp, [)
Author Message
kocho



Joined: 14 Jun 2006
Posts: 13

PostPosted: 14 Jun 2006 - 9:09 pm    Post subject:  adding space and [ (&nbsp, [)
Subject description: how to add empty space so I can indent menu..and add "["
Reply with quote

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
View user's profile Send private message
radina



Joined: 21 Mar 2006
Posts: 29

PostPosted: 20 Jun 2006 - 2:21 pm    Post subject: Reply with quote

You can use &nbsp; like free space.
For example this-> &nbsp;| ||&nbsp;|*||*| |
shows menu1 || menu2 || menu3.

I home help you Smile

Radina
Back to top
View user's profile Send private message Send e-mail
rodmanm



Joined: 20 Apr 2006
Posts: 6

PostPosted: 21 Jun 2006 - 8:06 am    Post subject: Re: adding space and [ (&nbsp, [)
Subject description: how to add empty space so I can indent menu..and add "["
Reply with quote

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 = &nbsp;|&nbsp;
NO.after = |*||*| &nbsp;|&nbsp;
ACT.before = &nbsp;[&nbsp;
ACT.after = |*||*| &nbsp;]&nbsp;
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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [3 Posts] View previous topic :: View next topic
Home » TypoScript » Menu
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum