[TYPO3] All text to TMENU link tekst
Christopher Torgalson
bedlamhotel at gmail.com
Thu Sep 6 22:07:01 CEST 2007
Hi,
On 9/6/07, Mathias R. Wulff <mathias at rawu.dk> wrote:
> Strange... At the link to the documentation it seams like stdWrap is
> just the correct one.
>
> but... it seams to ignore the stdWrap instruction...
>
> My full code
>
>
>
> lib.tmp.2 = HMENU
> lib.tmp.2.entryLevel = 1
> lib.tmp.2.1 = TMENU
> lib.tmp.2.1 {
>
> wrap = <ul class="menuelementer">|</ul>
>
> NO = 1
> NO.allWrap = <li>|</li>
>
> ACT = 1
> ACT.allWrap = <li><span class="aktiv">|</span></li>
>
> ACTIFSUB = 1
> ACTIFSUB.allWrap = <li><span class="aktiv">|</span>
> ACTIFSUB.expAll = 1
>
> IFSUB = 1
> IFSUB.allWrap = <li>|
> }
>
> lib.tmp.2.2 = TMENU
> lib.tmp.2.2 {
> wrap = <ul>|</ul></li>
>
> NO = 1
> NO.allWrap = <li>|</li>
> NO.stdWrap = Try a |
>
> ACT = 1
> ACT.allWrap = <li><span class="aktiv">|</span></li>
> ACT.stdWrap = Try a |
> }
>
>
> Any iedas?
Yes. Read back through the thread. .stdWrap itself doesn't do anything, ever.
Briefly, you have to read the datatype column next to .stdWrap on the
TMENUITEM page [1]. The datatype is stdWrap. Then, to see what that
means, go to the .../stdWrap section at the beginning of the TSref
[2]. There, it says
"When a datatype is set to "type /stdWrap" it means that the value is
parsed through the stdWrap function with the properties of the value
as parameters."
The key words are "stdWrap function"--that's the clue to look in the
stdWrap section under "Functions" in the TSref [3]. Once you're there,
you'll find dozens of useful stdWrap tools such as "wrap" (hint,
hint...)
For more information about figuring out how to use the TSref, see
http://www.typo3apprentice.com/howto/rtfm/
--
Christopher Torgalson
http://www.typo3apprentice.com/
[1] http://typo3.org/documentation/document-library/references/doc_core_tsref/4.1.0/view/10/8/
[2] http://typo3.org/documentation/document-library/references/doc_core_tsref/4.1.0/view/3/1/#id3520906
[3] http://typo3.org/documentation/document-library/references/doc_core_tsref/4.1.0/view/5/1/
More information about the TYPO3-english
mailing list