Die TYPO3 Mailingliste - nicht fragen: lesen!
This is a discussion on [TYPO3] Format header date within the typo3-english@lists.netfielders.de forums, part of the TYPO3-Mailinglists: ENGLISH category; I have inserted a few records, basically header and date. To retrieve the data I do this: subparts.containers = CONTENT ...
|
|||||||
| Registrieren | Hilfe | Benutzerliste | Kalender | Suchen | Heutige Beiträge | Alle Foren als gelesen markieren |
|
#1
|
|||
|
|||
|
I have inserted a few records, basically header and date. To retrieve the
data I do this: subparts.containers = CONTENT subparts.containers { table = tt_content select { pidInList = this orderBy = sorting where = colPos=0 } renderObj = TEXT renderObj { field = header wrap = |<br> typolink.parameter.field = pid typolink.parameter.dataWrap = | typolink.additionalParams.insertData = 1 typolink.additionalParams = &faq={field:uid} typolink.no_cache = 1 if.isTrue.field=header } } This only retrieves the header and makes a link, this works fine, what I want to know is if there's a way to get the date here as well and place it above the link I just created. On the other hand, I also need to be able to format the date when displaying the record in the regular way. This has nothing to do with the previous example, it's basically another issue. Thank you girls & boys. Stefan _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#2
|
|||
|
|||
|
> This only retrieves the header and makes a link, this works fine, what I
> want to know is if there's a way to get the date here as well and place it > above the link I just created. subparts.containers = CONTENT subparts.containers { table = tt_content select { pidInList = this orderBy = sorting where = colPos=0 } renderObj = COA renderObj.10 = TEXT renderObj.10 { field = [whatever date field you are talking about] wrap = |<br> } renderObj.20 = TEXT renderObj.20 { field = header wrap = |<br> typolink.parameter.field = pid typolink.parameter.dataWrap = | typolink.additionalParams.insertData = 1 typolink.additionalParams = &faq={field:uid} typolink.no_cache = 1 if.isTrue.field = header } } Tomas Mrozek _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#3
|
|||
|
|||
|
Thank you, but it does not work. It only display the first TEXT.
Any other ideas? Tomas Mrozek wrote: >> This only retrieves the header and makes a link, this works fine, what I >> want to know is if there's a way to get the date here as well and place >> it >> above the link I just created. > > subparts.containers = CONTENT > subparts.containers { > table = tt_content > select { > pidInList = this > orderBy = sorting > where = colPos=0 > } > > renderObj = COA > > renderObj.10 = TEXT > renderObj.10 { > field = [whatever date field you are talking about] > wrap = |<br> > } > > renderObj.20 = TEXT > renderObj.20 { > field = header > wrap = |<br> > typolink.parameter.field = pid > typolink.parameter.dataWrap = | > typolink.additionalParams.insertData = 1 > typolink.additionalParams = &faq={field:uid} > typolink.no_cache = 1 > if.isTrue.field = header > } > } > > Tomas Mrozek > _______________________________________________ > 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
|
|||
|
|||
|
Correction, it does work, I had a typing bug. Thank you!
Now the other thing, can this date be formated, in the DB typo3 inserts the time in seconds: like 1219224206 Do I need to make a function to format it the way I want? Thank you Tomas Mrozek wrote: >> This only retrieves the header and makes a link, this works fine, what I >> want to know is if there's a way to get the date here as well and place >> it >> above the link I just created. > > subparts.containers = CONTENT > subparts.containers { > table = tt_content > select { > pidInList = this > orderBy = sorting > where = colPos=0 > } > > renderObj = COA > > renderObj.10 = TEXT > renderObj.10 { > field = [whatever date field you are talking about] > wrap = |<br> > } > > renderObj.20 = TEXT > renderObj.20 { > field = header > wrap = |<br> > typolink.parameter.field = pid > typolink.parameter.dataWrap = | > typolink.additionalParams.insertData = 1 > typolink.additionalParams = &faq={field:uid} > typolink.no_cache = 1 > if.isTrue.field = header > } > } > > Tomas Mrozek > _______________________________________________ > 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 |
|
#5
|
|||
|
|||
|
See TSRef, section on stdWrap -> date. That should fix it for you.
Bas On Wed, 2008-08-20 at 13:12 +0200, Stefan Aichholzer wrote: > Correction, it does work, I had a typing bug. Thank you! > > Now the other thing, can this date be formated, in the DB typo3 inserts > the time in seconds: like 1219224206 > > Do I need to make a function to format it the way I want? > > Thank you > > > Tomas Mrozek wrote: > >> This only retrieves the header and makes a link, this works fine, what I > >> want to know is if there's a way to get the date here as well and place > >> it > >> above the link I just created. > > > > subparts.containers = CONTENT > > subparts.containers { > > table = tt_content > > select { > > pidInList = this > > orderBy = sorting > > where = colPos=0 > > } > > > > renderObj = COA > > > > renderObj.10 = TEXT > > renderObj.10 { > > field = [whatever date field you are talking about] > > wrap = |<br> > > } > > > > renderObj.20 = TEXT > > renderObj.20 { > > field = header > > wrap = |<br> > > typolink.parameter.field = pid > > typolink.parameter.dataWrap = | > > typolink.additionalParams.insertData = 1 > > typolink.additionalParams = &faq={field:uid} > > typolink.no_cache = 1 > > if.isTrue.field = header > > } > > } > > > > Tomas Mrozek > > _______________________________________________ > > 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 |
| Themen-Optionen | Thema durchsuchen |
| Ansicht | Thema bewerten |
|
|
|
||||
| Thema | Autor | Forum | Antworten | Letzter Beitrag |
| [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 |
| [TYPO3] Why is header date not in the csc-header div | Roelof Wobben | typo3-english@lists.netfielders.de | 3 | 09.04.2007 22:52 |