[TYPO3-english] Dificile H/TMENU problem
David Bruchmann
typo3-en at bruchmann-web.de
Mon May 4 17:33:03 CEST 2009
----- Ursprüngliche Nachricht -----
Von: Mai Ling Hsieh <mlhsieh at inet.mail.com.cn>
Gesendet: Montag, 4. Mai 2009 14:27:38
An: typo3-english at lists.netfielders.de
CC:
Betreff: [TYPO3-english] Dificile H/TMENU problem
> Hi all,
>
> I have a TMENUE with 6 levels.
>
> But if I am in the 4th level, I want all menu points to disappear.
>
> With one exception:
> The parent menu names should be there, but all menu points which are not
> in the branch I am should be hidden.
>
> You can see an example if you go to: http://www.amazon.de/
> Click on "Bücher" -> "Fachbücher" -> "Informatik" -> "Angewandte
> Informatik" -> "Sicherheit & Kryptographie"
>
> As you can see, the parent menus are still there.
>
> < Bücher
> < Fachbücher
> < Informatik
>
> But they display hust the branch where I am in.
>
> How could I get this in a H/Tmenu to work?
>
> Any examples, ideas, suggestions?
>
> Thanlks
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>
Hi Mai Ling,
I tried both propositions, from Andreas and me, but succeeded with
following solution:
page.headerData.10 = TEXT
page.headerData.10.value (
<style type="text/css">
.special_rootline {font-size:small}
.special_rootline .s_rootline_level_1 {margin-left:6px}
.special_rootline .s_rootline_level_2 {margin-left:12px}
.special_rootline .s_rootline_level_3 {margin-left:18px}
.special_rootline .s_rootline_level_4 {margin-left:24px}
.special_rootline .s_rootline_level_5 {margin-left:30px}
.special_rootline .s_rootline_level_6 {margin-left:36px}
</style>
)
page.15 = HMENU
page.15 {
wrap = <div class="special_rootline">|</div>
special = rootline
1 = TMENU
###### All in One Line - start #####
1.NO.linkWrap = |*| <div class="s_rootline_level_1">1 |</div> || <div
class="s_rootline_level_2">2 |</div> || <div
class="s_rootline_level_3">3 |</div> || <div
class="s_rootline_level_4">4 |</div> || <div
class="s_rootline_level_5">5 |</div> || <div
class="s_rootline_level_6">6 |</div> |*|
###### All in One Line - end #####
}
Values between |*| and |*| are rotating, that means you can add as much
as needed separated by || (option split, reference: TSref)
Only your request
> But if I am in the 4th level, I want all menu points to disappear.
I never understood - what do you mean exactly?
Best Regards
David
More information about the TYPO3-english
mailing list