Die TYPO3 Mailingliste - nicht fragen: lesen!
This is a discussion on [TYPO3] Another date format issue within the typo3-english@lists.netfielders.de forums, part of the TYPO3-Mailinglists: ENGLISH category; Assume this: page.10.subparts.containers = CONTENT page.10.subparts.containers { table = tt_content select{ where = colPos=0 andWhere.insertData=1 ...
|
|||||||
| Registrieren | Hilfe | Benutzerliste | Kalender | Suchen | Heutige Beiträge | Alle Foren als gelesen markieren |
|
#1
|
|||
|
|||
|
Assume this:
page.10.subparts.containers = CONTENT page.10.subparts.containers { table = tt_content select{ where = colPos=0 andWhere.insertData=1 andWhere=uid={GPvar:faq} andWhere.if.isTrue.data=GPvar:faq } } Is display something like this: 08/08/2009 The header The text As that is the way it's stored. Now, is there a way to format that date shown from the select above? As usual thanx a million! _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#2
|
|||
|
|||
|
Stefan,
Check the same TSRef chapter on stdWrap, you'll find a strftime item just below the section where you found 'date'. Bas On Wed, 2008-08-20 at 13:53 +0200, Stefan Aichholzer wrote: > Assume this: > > page.10.subparts.containers = CONTENT > page.10.subparts.containers { > table = tt_content > select{ > where = colPos=0 > andWhere.insertData=1 > andWhere=uid={GPvar:faq} > andWhere.if.isTrue.data=GPvar:faq > } > } > > Is display something like this: > > 08/08/2009 > The header > > The text > > > As that is the way it's stored. Now, is there a way to format that date > shown from the select above? > > As usual thanx a million! > > > > _______________________________________________ > TYPO3-english mailing list > TYPO3-english (AT) lists (DOT) netfielders.de > http://lists.netfielders.de/cgi-bin/.../typo3-english _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#3
|
|||
|
|||
|
Yes, I saw that, my question is how to apply that (or date) to a certain
field from the select, something like: page.10.subparts.containers = CONTENT page.10.subparts.containers { table = tt_content field = date date = d/m/Y select{ where = colPos=0 andWhere.insertData=1 andWhere=uid={GPvar:faq} andWhere.if.isTrue.data=GPvar:faq } } But that does not work of course. Do you know what I mean? Thank you Bas v.d. Wiel wrote: > Stefan, > Check the same TSRef chapter on stdWrap, you'll find a strftime item > just below the section where you found 'date'. > > Bas > > On Wed, 2008-08-20 at 13:53 +0200, Stefan Aichholzer wrote: >> Assume this: >> >> page.10.subparts.containers = CONTENT >> page.10.subparts.containers { >> table = tt_content >> select{ >> where = colPos=0 >> andWhere.insertData=1 >> andWhere=uid={GPvar:faq} >> andWhere.if.isTrue.data=GPvar:faq >> } >> } >> >> Is display something like this: >> >> 08/08/2009 >> The header >> >> The text >> >> >> As that is the way it's stored. Now, is there a way to format that date >> shown from the select above? >> >> As usual thanx a million! >> >> >> >> _______________________________________________ >> TYPO3-english mailing list >> TYPO3-english (AT) lists (DOT) netfielders.de >> http://lists.netfielders.de/cgi-bin/.../typo3-english > _______________________________________________ > TYPO3-english mailing list > TYPO3-english (AT) lists (DOT) netfielders.de > http://lists.netfielders.de/cgi-bin/.../typo3-english > > -- Stefan Aichholzer http://aichholzer.name stefan (AT) aichholzer (DOT) name (+34) 691.477.394 _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#4
|
|||
|
|||
|
Fixed it:
page.10.subparts.containers = CONTENT page.10.subparts.containers { table = tt_content select{ where = colPos=0 andWhere.insertData=1 andWhere=uid={GPvar:faq} andWhere.if.isTrue.data=GPvar:faq } renderObj = COA renderObj.10 = TEXT renderObj.10 { field = date date = d / m / Y wrap = <p class="faq_date">Fecha: |</p> } renderObj.20 = TEXT renderObj.20 { field = header wrap = <p class="faq_lnk">|</p> } renderObj.30 = TEXT renderObj.30 { field = bodytext wrap = <p class="bodytext">|</p> } } Guess I'm slowly becoming the Jedy ![]() Bas v.d. Wiel wrote: > Stefan, > Check the same TSRef chapter on stdWrap, you'll find a strftime item > just below the section where you found 'date'. > > Bas > > On Wed, 2008-08-20 at 13:53 +0200, Stefan Aichholzer wrote: >> Assume this: >> >> page.10.subparts.containers = CONTENT >> page.10.subparts.containers { >> table = tt_content >> select{ >> where = colPos=0 >> andWhere.insertData=1 >> andWhere=uid={GPvar:faq} >> andWhere.if.isTrue.data=GPvar:faq >> } >> } >> >> Is display something like this: >> >> 08/08/2009 >> The header >> >> The text >> >> >> As that is the way it's stored. Now, is there a way to format that date >> shown from the select above? >> >> As usual thanx a million! >> >> >> >> _______________________________________________ >> TYPO3-english mailing list >> TYPO3-english (AT) lists (DOT) netfielders.de >> http://lists.netfielders.de/cgi-bin/.../typo3-english > _______________________________________________ > TYPO3-english mailing list > TYPO3-english (AT) lists (DOT) netfielders.de > http://lists.netfielders.de/cgi-bin/.../typo3-english > > -- Stefan Aichholzer http://aichholzer.name stefan (AT) aichholzer (DOT) name (+34) 691.477.394 _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
| Themen-Optionen | Thema durchsuchen |
| Ansicht | Thema bewerten |
|
|
|
||||
| Thema | Autor | Forum | Antworten | Letzter Beitrag |
| [TYPO3] Format header date | stefan@aichholzer.name | typo3-english@lists.netfielders.de | 4 | 20.08.2008 13:37 |
| [TYPO3-ttnews] Re: [Typo3-tt-news] Change date format for relatednews list (single view) | Stig Kjeldsen | typo3-project-tt-news@lists.netfielders.de | 0 | 15.08.2008 13:49 |
| [TYPO3-ttnews] Date format used in tt_news | Stephen Bungert | typo3-project-tt-news@lists.netfielders.de | 1 | 25.05.2008 14:49 |
| [TYPO3] Date format used in tt_news | Stephen Bungert | typo3-english@lists.netfielders.de | 7 | 07.03.2008 16:35 |
| [TYPO3] translation of time and date format in tt_news | Morten Kjems | typo3-english@lists.netfielders.de | 2 | 17.04.2007 13:15 |