[Typo3-UG Oesterreich] tt_news datum aktualisieren

Kurt Dirnbauer dirnbauer at web-consulting.at
Mon Oct 31 16:36:07 CET 2005


hi,


Am 31.10.2005 um 11:38 schrieb Martin Fluer:
>
ich weiss zwar nicht,
was du vorhast.


> bin bereits den ganzen vormittag dabei eine lösung für folgendes  
> problem zu
> finden:
> das newsdatum soll bei jedem abspeichern im backend neu (aktuelles  
> datum)
> gesetzt werden (und damit natürlich auch die reihung).
> hat das schon mal jemand umgesetzt?
> ich hab bis jetzt noch keine dokumentation oder lösungsansatz dazu  
> gefunden.

aber ich denke,
du willst die news, die zuletzt abgespeichert wurde, haben?

dh.:
- eine news wurde erstellt.
- man aendert die news --> news erscheint als aktuellste?
-> du meinst die timestamp der news??

da wuerd ich einfach die flexform_ds.xml von der ext erweitern.

----------------
<type>select</type>
                     <items type="array">
                                 <numIndex index="0" type="array">
                             <numIndex index="0"></numIndex>
                             <numIndex index="1"></numIndex>
                         </numIndex>
                         <numIndex index="1" type="array">
                             <numIndex index="0">LLL:EXT:tt_news/ 
locallang_tca.php:tt_news.datetime</numIndex>
                             <numIndex index="1">datetime</numIndex>
                         </numIndex>
                         <numIndex index="2" type="array">
                             <numIndex index="0">LLL:EXT:tt_news/ 
locallang_tca.php:tt_news.archivedate</numIndex>
                             <numIndex index="1">archivedate</numIndex>
                         </numIndex>
                         <numIndex index="3" type="array">
                             <numIndex index="0">LLL:EXT:lang/ 
locallang_general.php:LGL.author</numIndex>
                             <numIndex index="1">author</numIndex>
                         </numIndex>
                         <numIndex index="4" type="array">
                             <numIndex index="0">LLL:EXT:lang/ 
locallang_general.php:LGL.title</numIndex>
                             <numIndex index="1">title</numIndex>
                         </numIndex>
                         <numIndex index="5" type="array">
                             <numIndex index="0">LLL:EXT:lang/ 
locallang_general.php:LGL.type</numIndex>
                             <numIndex index="1">type</numIndex>
                         </numIndex>
                         <numIndex index="5" type="array">
                             <numIndex index="0">LLL:EXT:tt_news/ 
locallang_tca.php:tt_news.random</numIndex>
                             <numIndex index="1">random</numIndex>
                         </numIndex>
                         <numIndex index="6" type="array">
                             <numIndex index="0">by changed  
timestamp</numIndex>
                             <numIndex index="1">tstamp</numIndex>
                         </numIndex>
                     </items>

----------
der letzte eintrag ist hinzugekommen (index="6").

meinst du das?

cheers,
kurt






More information about the TYPO3-at mailing list