[TYPO3-german] Komplette Flash-Seite mit Typo3

Mathias Schreiber [wmdb >] mathias.schreiber at wmdb.de
Tue May 26 09:28:57 CEST 2009


JoH asenau schrieb:
> Sauber programmiertes PHP ist in der Regel performanter als ein mit
> TypoScript generiertes stdWrap-Gewitter, weil man mit TypoScript immer auch
> einen gewissen Overhead mitschleppt.

Und die Aussage von dir, ich bin so stolz auf dich :)

Hier auch mal 2 Beispiele, damit man sich vorstellen kann, wie sowas 
aussieht:
(Umbrüche könnt ihr gerne behalten).

=============================
xml = PAGE
xml.typeNum = 0

xml.config.disableAllHeaderCode = 1
xml.config.tx_realurl_enable = 1
xml.config.additionalHeaders = Content-type: text/xml
xml.1000 >
xml.5 = TEXT
xml.5.value (
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<!DOCTYPE typo3_page>
<flash>
   <settings>
     <element id="0">
       <displayTypo id="posX">{$posX}</displayTypo>
       <displayTypo id="posY">{$posY}</displayTypo>
       <displayTypo id="date">{$date}</displayTypo>
       <displayTypo id="headline">{$headline}</displayTypo>
       <displayTypo id="copy">{$copy}</displayTypo>
       <displayTypo id="link">{$link}</displayTypo>
       <displayTypo id="typoLink">{$typoLink}</displayTypo>
       <displayTypo id="pauseChange">{$pauseChange}</displayTypo>
       <linkUrl id="0">{$linkUrl}</linkUrl>
     </element>
   </settings>
   <news>
)
xml {
   10 = CONTENT
   10.table = tt_news
   10.select.pidInList = 68
   10.select.orderBy = datetime DESC
}

tt_news = COA
tt_news {

   6 = TEXT
   6.field = uid
   6.wrap = <element id="|">


   10 = TEXT
   10.field = datetime
   10.date = d.m.Y
   10.wrap = <typo id="date">|</typo>

   20 = TEXT
   20.field = title
   20.wrap = <typo id="headline">|</typo>

   30 = TEXT
   30.field = short//bodytext
   30.crop = 175|...
   30.stripHtml = 1
   30.wrap (
    <typo id="copy">
    <![CDATA[
    |
    ]]>
    </typo>
   )

   40 = TEXT
   40.field = tx_wmdbneonewstext_linktext
   40.noTrimWrap = |<typo id="link"><![CDATA[|]]></typo>

   60.wrap = <linkUrl id="0"><![CDATA[|]]></linkUrl>
   60 = TEXT
   60.value = dies ist der Text, der überhaupt nicht gezogen wird, weil 
wir returnLast = url benutzen
   60.typolink.parameter = 69
   60.typolink.additionalParams.dataWrap = 
&tx_ttnews[tt_news]={field:uid}&tx_ttnews[backPid]=4
   60.typolink.returnLast = url
   60.typolink.useCacheHash = 1

   70 = TEXT
   70.value = </element>
}

xml.20 = TEXT
xml.20.value = </news></flash>
==============================
xml = PAGE
xml.typeNum = 0
xml.config.disableAllHeaderCode = 1
xml.config.tx_realurl_enable = 1
xml.config.additionalHeaders = Content-type: text/xml
xml.1000 >
xml.5 = TEXT
xml.5.value (
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<!DOCTYPE typo3_page>
<flash>
   <settings>
     <postit id="hp_posX">565</postit>
     <postit id="hp_posY">39</postit>
   </settings>
   <postit>
)
xml {
   10 = HMENU
   10.special = directory
   10.special.value = 15
   10.1 = TMENU
   10.1.NO.doNotLinkIt = 1
   10.1.NO.doNotShowLink = 1
   10.1.NO.before.cObject = COA
   10.1.NO.before.cObject {
     10 = TEXT
     10.stdWrap.dataWrap = {register:count_MENUOBJ}-1
     10.prioriCalc = intval
     10.wrap = <element id="|">
     20 = TEXT
     20.field = title
     20.wrap = <line id="typo">|</line>
     30 = TEXT
     30.field = title
     30.typolink.parameter.field = uid
     30.typolink.returnLast = url
     30.wrap = <line id="linkUrl">|</line>
     40 = TEXT
     40.value = <line id="linkTarget">_top</line>
     50 = TEXT
     50.dataWrap = <line id="pageID">p{register:count_MENUOBJ}</line>
     60 = TEXT
     60.field = title
     60.wrap = <line id="contentTypoH">|</line>
     120 = TEXT
     120.value = </element>
   }
}
xml.20 = TEXT
xml.20.value = </postit></flash>
==============================

enjoy...


-- 
TYPO3 certified intregator
T3DD09 Entertainer


More information about the TYPO3-german mailing list