[TYPO3] How to overwrite HMENU?

JoH info at cybercraft.de
Sun Jul 23 23:49:13 CEST 2006

> Or even more obvious
> temp.mytext = TEXT
> temp.mytext.value = Hello World
> and manipulation in subtemplate via
> temp.mytext.value = Hello NEW World
> does not work, but with lib.* elements it works.
> I think without changing the lines, that create your menu and make it
> a lib.* element, it will not be successfull to manipulate it in a
> deeper template.

Well - lib elements are still "available" after you copied them to wherever
you like, while temp elements are just what their name says: temporary - so
the will disappear after you copied them.

But you can still change the values in extension templates. Since the
original temp.whatever disappeared the only difference is, that you have to
change one or more places where you have been using it.

Something like this

temp.whatever = TEXT
temp.whatever {
    value = Hello World
marks.HELLO < temp.whatever

can be changed in the extension template by this line:

marks.HELLO.value = Hello NEW World

Depending on the number of different places where you "recycled" your temp
element it might be wise to change it into a lib element. Instead of
changing alle the different places you will be changing the original only.



Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your knob sometimes!)
Dieter Nuhr, German comedian
openBC: http://www.cybercraft.de
T3 cookbook: http://www.typo3experts.com

More information about the TYPO3-english mailing list