[TYPO3-english] Some troubles with script

Andrey Rusanov rusanov.andrey.mail at gmail.com
Wed Mar 7 10:25:43 CET 2012


HI! I found a typoscript code, which creating page teasers:

   1. #A
   2. temp.pageTeasers =
CONTENT<http://documentation.typo3.org/documentation/tsref/cobjects/CONTENT/>
   3. temp.pageTeasers {
   4.   table = pages
   5.   pidInList = this
   6.   orderBy = sorting ASC
   7.
   8.   #B
   9.   renderObj =
COA<http://documentation.typo3.org/documentation/tsref/cobjects/COA/>
   10.   renderObj {
   11.     10 =
COA<http://documentation.typo3.org/documentation/tsref/cobjects/COA/>
   12.     10 {
   13.       10 =
TEXT<http://documentation.typo3.org/documentation/tsref/cobjects/TEXT/>
   14.       10.typolink<http://documentation.typo3.org/documentation/tsref/functions/typolink/>
   .parameter.field = uid
   15.      }
   16.     10.stdWrap<http://documentation.typo3.org/documentation/tsref/functions/stdWrap/>
   .stripHtml = 1
   17.     10.stdWrap<http://documentation.typo3.org/documentation/tsref/functions/stdWrap/>
   .outerWrap = <h3>|</h3>
   18.
   19.     #C
   20.     20 =
CONTENT<http://documentation.typo3.org/documentation/tsref/cobjects/CONTENT/>
   21.     20 {
   22.       table = tt_content
   23.       select<http://documentation.typo3.org/documentation/tsref/functions/select/>
    {
   24.         pidInList.field = uid
   25.         andWhere.wrap = bodytext != '' AND deleted != 1
   sys_language_uid=|
   26.         andWhere.data = TSFE:sys_language_uid
   27.         andWhere.intval = 1
   28.         orderBy = sorting ASC
   29.         max = 1
   30.       }
   31.
   32.       #D
   33.       renderObj =
COA<http://documentation.typo3.org/documentation/tsref/cobjects/COA/>
   34.       renderObj {
   35.         10 =
HTML<http://documentation.typo3.org/documentation/tsref/cobjects/HTML/>
   36.         10.value {
   37.           field = bodytext
   38.           cropHTML = 150|...
   39.
parseFunc<http://documentation.typo3.org/documentation/tsref/functions/parseFunc/>
    < lib.parseFunc_RTE
   40.         }
   41.       }
   42.     }
   43.
   44.     #E
   45.     15 =
IMAGE<http://documentation.typo3.org/documentation/tsref/cobjects/IMAGE/>
   46.     15 {
   47.       file {
   48.         import = uploads/media/
   49.         import.field = media
   50.         import.listNum = last
   51.         height = 75c
   52.         width = 100c
   53.       }
   54.     }
   55.
   56.     #F
   57.     30 =
TEXT<http://documentation.typo3.org/documentation/tsref/cobjects/TEXT/>
   58.     30 {
   59.       value = More information
   60.       lang {
   61.         de = Mehr Information
   62.         fr = Plus d'informations
   63.         nl = Meer informatie
   64.         es = Más información
   65.         it = Maggiori informazioni
   66.       }
   67.       typolink<http://documentation.typo3.org/documentation/tsref/functions/typolink/>
    {
   68.         parameter.field = uid
   69.         additionalParams.dataWrap = &L={TSFE:sys_language_uid}
   70.       }
   71.       outerWrap = <span class="more-info">|</span>
   72.   }
   73.   wrap = <div class="my-typoscript-page-teasers">|</div>
   74. }

But I have a trouble with line 37 field = bodytext - that does not work.

Could you tell what the problem is?


More information about the TYPO3-english mailing list