[TYPO3] Current Menu

Georg Rehfeld georg.rehfeld at gmx.de
Tue Jun 26 09:31:48 CEST 2007


Hi Marek,

> * Level 1
> ** Level 2
> *** Level 3
> **** Level 4
> 
> When I am in e.g. level 1 I want show only level 1. When I am in level 3 I
> want show only level 3.
> I can do this with condition.
> 
> [treeLevel = 3]
> .....entryLevel = 3

The simple answer is: forget about conditions for that job, just use

.....entryLevel = -1

> But with e.g. 100 level I will need 100 conditions.

So you are planning a really big site, where you expect users to click
100 times on menu entries, until they then (phhh) finally arrive at
some useful content ... good luck with _that_ concept. Expect me to be
the first one to test it :-) !

> Exists something like "entryLevel = <current level>".

See above.

> It looks like easy thing, but I don't have idea how do it.

I (we all) see (and all future archive readers as well ... ooops).

You might consider reading some docs, maybe? I _know_, that's annoying,
but in this respect, TYPO3 is _not_ for free. You could have just
clicked that |TS| icon below/near your TS Setup field, to directly
inspect the TypoScript reference while editing your setup. But to be
helpful, here is the link to the appropriate HMENU online doc:

http://typo3.org/documentation/document-library/references/doc_core_tsref/4.1.0/view/8/11/

Search for and reread the 'entryLevel' text. Translate that 'outermost 
level' to 'the page you are on'.

And, yes, the 'TSref' is hard to read/understand sometimes, unless you
have read (plenty of the) other documentation.

But please note: _most_ of the available documentation was written by
that great man Kasper, who also did most of the core code/concept, so he
was constantly under time pressure and couldn't do much more than just
delivering the essential/raw documentation. And thus it is unbelievable,
what that single man was and is able to do.

For some unknown reason _nobody_ else ever tried to reformulate his raw 
docs into something more understandable (in these areas, where they are
_still_, after years of core development, hard to understand).

HTH, Georg
-- 
   ___   ___
  | + | |__    Georg Rehfeld      Woltmanstr. 12     20097 Hamburg
  |_|_\ |___   georg.rehfeld.nospam at gmx.de    +49 (40) 23 53 27 10

               (Delete .nospam from mail address)


More information about the TYPO3-english mailing list