TYPO3-Browser: datetime depending on value
| Autor | Nachricht |
|---|---|
|
Verfasst am: 15. 02. 2012 [14:38]
|
|
|
katja
Katja Lampela
Themenersteller
Dabei seit: 15.02.2012
Beiträge: 8
|
Hi browser experts, If this is wrong arena, please forgive me. I need help concerning a case where I need the browser to show a datetime value if there is one. If there is no value, it list + single view should show a text "not ready yet" and possibly also show another database text field in that case. So, if you think you can give me a solution for this, you can contact me privately katja@lieska[dot]net - thank you. |
|
Verfasst am: 15. 02. 2012 [22:23]
|
|
|
dirk
Dirk Wildt
Dabei seit: 27.09.2010
Beiträge: 599
|
Dear Katja, you have to configure TypoScript like in the snippet below. TYPOSCRIPT plugin.tx_browser_pi1 { ... views { list { 1 { ... select ( ..., my_table.datetime, my_table.another_field , ... ) ... my_table { ... datetime = COA datetime { // Effect in case of a proper datetime 10 = TEXT 10 { if { isTrue = ###MY_TABLE.DATETIME### } value = ###MY_TABLE.DATETIME### strftime = (see PHP manual strftime) } // Effect in case of an empty datetime 20 = TEXT 20 { if { isFALSE = ###MY_TABLE.DATETIME### } value = not ready yet - ###MY_TABLE.ANOTHER_FIELD### } ... } ... Is it the code you need? If you like to donate something, please refer to * http://typo3-browser.de/sponsoring (page is in German only, sorry). If you like to contract us, please send me a PM (private message). Kind regards Dirk --
Willst Du den TYPO3-Browser mit einer Spende unterstützen? Wir freuen uns über jeden EUR! Sponsoring: Ich will einfach einen Betrag spenden http://typo3-browser.de/sponsoring |
|
Verfasst am: 11. 03. 2012 [11:27]
|
|
|
katja
Katja Lampela
Themenersteller
Dabei seit: 15.02.2012
Beiträge: 8
|
Hi Dirk, Actually this part doesn't work: TYPOSCRIPT value = not ready yet - ###MY_TABLE.ANOTHER_FIELD### The text "not ready yet - " comes ok, but the another database field doesn't show. -Kindly Katja |
Powered by TYPO3 und mm_forum Extension


