TYPO3Jack.net - Das TYPO3 Mailinglist Forum Archiv

Die TYPO3 Mailingliste - nicht fragen: lesen!

[TYPO3] Format header date

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 ...


Zurück   TYPO3Jack.net - Das TYPO3 Mailinglist Forum Archiv > TYPO3-Mailinglists: ENGLISH > typo3-english@lists.netfielders.de

Registrieren Hilfe Benutzerliste Kalender Suchen Heutige Beiträge Alle Foren als gelesen markieren
  #1  
Alt 20.08.2008, 11:06
stefan@aichholzer.name
Gast
 
Beiträge: n/a
Standard [TYPO3] Format header date

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #2  
Alt 20.08.2008, 12:12
Tomas Mrozek
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] Format header date

> 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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #3  
Alt 20.08.2008, 13:07
Stefan Aichholzer
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] Format header date

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #4  
Alt 20.08.2008, 13:12
Stefan Aichholzer
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] Format header date

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #5  
Alt 20.08.2008, 13:37
Bas v.d. Wiel
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] Format header date

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
 

Themen-Optionen Thema durchsuchen
Thema durchsuchen:

Erweiterte Suche
Ansicht Thema bewerten
Thema bewerten:

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are an


Ähnliche Themen

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


Alle Zeitangaben in WEZ +1. Es ist jetzt 20:46 Uhr.


Powered by vBulletin® Version 3.7.2 (Deutsch)
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39