Download  |  Search  |  Log in  |  FAQ  |  Memberlist  |  Online  |  TYPO3.org Developer Resource
Home » TypoScript » Menu
Post new topic   Reply to topic Page 1 of 1 [2 Posts] Creating menus with 3th levels menu-items another place
Author Message
lojmann



Joined: 16 Sep 2006
Posts: 1

PostPosted: 16 Sep 2006 - 5:52 pm    Post subject:  Creating menus with 3th levels menu-items another place Reply with quote

Hi,

I'm new in Typo3 and TS and have a basic problem.

I have a vertical menu, where all my menu items for the moment is printed as a one-line row.
I would like to put my second level menu items on a new line in the same <td>-tag and then my 3th level menu items in another <td>-container on the left of my page.

I'm using TemplaVoila and has just created some basic HTML templates (3 different files, one for each level)

My TS code is like this:

Line:  Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
lib.mainMenu = HMENU
lib.mainMenu.entryLevel = 0
lib.mainMenu.1 = TMENU
lib.mainMenu.1.expAll = 0
lib.mainMenu.1.NO {
allWrap = |
after =  - |
}

lib.mainMenu.2_LEVEL1 = HMENU
lib.mainMenu.2_LEVEL1.entryLevel = 1
lib.mainMenu.2_LEVEL1.1 = TMENU
lib.mainMenu.2_LEVEL1.1.NO {
allWrap = |
after = <br>
}
 Show complete code


I'm running Typo3 Ver. 4.0.1.

I've tryed to look into the TSref pages and on this page here, but can't see why it don't work for me...
I tryed to map the sub-menu to my left <td>-container, to have the 3th menu level there, but it don't work... I newer see my 3th level...

Hope you guys can help me Smile

/Thomas
Back to top
View user's profile Send private message
Taurus



Joined: 08 Feb 2006
Posts: 7
Location: Germany

PostPosted: 12 Oct 2006 - 7:16 am    Post subject: Reply with quote

Hello
On my Website, I use a level 3 Menu seperately with this code:
Line:  Code:
1
2
3
4
5
6
7
8
page.10.marks.RECHTS.6 = HMENU
page.10.marks.RECHTS.6.1 = TMENU
page.10.marks.RECHTS.6.entryLevel = 3
page.10.marks.RECHTS.6.target = _top
page.10.marks.RECHTS.6.1.wrap = <table class="contenttable contenttable-2">| </table>
page.10.marks.RECHTS.6.1.NO.linkWrap = <tr><td>|<tr><td>
 Show complete code


For the level 2 Menu in the same div-Container you couldt use something like that:
Line:  Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
temp.U1Menu.1 = TMENU
temp.U1Menu.1 {
  noBlur = 1
  NO.allWrap = <div>|</div>
  NO.ATagParams = class="linkespaltemenuesub2"
  ACT = 1
  ACT.wrapItemAndSub = <div class="linkespaltemenuesub2off">&rarr;&nbsp;|</div>
}
temp.U1Menu.2 = TMENU
temp.U1Menu.2 {
  noBlur = 1
  NO.allWrap =|
  NO.ATagParams = class="linkespaltemenuesub3"
  ACT = 1
  ACT.allWrap = <div class="linkespaltemenuesub3off">&rarr;&nbsp;|</div>
}
 Show complete code


The important part is in the wrapItmenAndSub property in Line 7.
There TS is told to wrap whole submenuitems in the div-Container.

I hope this will help you

Taurus
_________________
TYPO3 3.8.1
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [2 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