I don't understand why you would need special directory HMENU.

From what I understand, Salander want's just a regular page menu for 1st level:

lib.main = HMENU
lib.main {
wrap = <div id="main_naviguation">|</div>
1 = TMENU
1.NO.allWrap =
}

and another menu for 2nd level:

lib.sub = HMENU
lib.sub {
wrap = <div id="sub_naviguation">|</div>
entryLevel = 1
1 = TMENU
1.NO.allWrap =
}

Jan

Dne 15.10.2013 16:27, PIT Solutions napsal(a):
Hi,

Yes, you need to give your root page id (PID) to the "special.value" parameter.

For example;
     Suppose your root page id is "1". Then the script becomes;

temp.sub_naviguation = HMENU
temp.sub_naviguation {
     special = directory
     special.value = 1
     wrap = <div id="main_naviguation">|</div>
     1 = TMENU
     1 {
         expAll = 0
         NO = 1
         NO.wrapItemAndSub = <li class="menu1-level1-no">|</li>
         ACT = 1
         ACT.wrapItemAndSub = <li class="menu1-level1-act">|</li>
     }
     2 < .1
     2.wrap = <div id="sub_naviguation">|</div>
}

Here we give the root page id "1" as the directory value. Then the script takes 
all the
subages of this id.

I hope you know the exact meaning of each line in the above script.

For 2 level menu you can use the above script. In the above example,
the main menu wrapped inside <div id="main_naviguation"> and the submenu 
wrapped inside
<div id="sub_naviguation">.

If your templating is correct, then obviously you got the value in the 
following script;

# Main TEMPLATE cObject for the BODY
temp.mainTemplate = TEMPLATE
temp.mainTemplate {
   [...]
   subparts.sub_naviguation < temp.sub_naviguation
   [...]
}

Please analyse your code through Typoscript object browser.

I hope this will help you.

With Regards,
   Arun Chandran
   Software Engineer
   PIT Solutions Pvt Ltd


________________________________
  From: Salander <[email protected]>
To: [email protected]
Sent: Tuesday, October 15, 2013 6:56 PM
Subject: [TYPO3-english]  Re:  [Templating] Separating 1st level menu and 2nd 
level menu?


Hello,

Thanks for your quick response.
The link you gave me is the tutorial I followed to create my TS config. I thought my 
Script was good because it's exactly the same from the documentation, except I 
changed menu_1 by the <div> sub_naviguation.
When you say "give your root page id to "special value" paramater", you mean I 
must give it the PID of my root page?

Sorry, I'm a newbie and I have some difficulties to understand everything...

Thanks again.

Cordialement,

Salander


Quote: Typo Three wrote on Tue, 15 October 2013 13:27
----------------------------------------------------
Hi,

First you need to give your root page id to "special.value" parameter. And all 
other scripts in my code is correct for a 2 level menu.

You can check the HTML integration here;


Can you please go through the url 
http://typo3.org/documentation/document-library/tutorials/doc_tut_templselect/0.1.0/view/1/3/

May be problem with your scripting; Please find an example below;
# Main TEMPLATE cObject for the BODY
temp.mainTemplate = TEMPLATE
temp.mainTemplate {
     # Feeding the content from the Auto-parser to the TEMPLATE cObject:
   template =< plugin.tx_automaketemplate_pi1
     # Select only the content between the <body>-tags
   workOnSubpart = DOCUMENT_BODY     # Substitute the ###menu_1### subpart with 
dynamic menu:
   subparts.menu_1 < temp.menu_1
Please check once more;

With Regards,
Arun Chandran
Software Engineer
PIT Solutions Pvt Ltd.


_______________________________________________
TYPO3-english mailing list
[email protected]
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english


_______________________________________________
TYPO3-english mailing list
[email protected]
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english

Reply via email to