
Mit diesem TypoScript Snippsel kann man das aktuelle Datum auf einer Website darstellen. Mit der Php Funktion strftime kann man das Datum beliebig formatieren.
// TYPO3 Setup
tmp.date = TEXT
tmp.date {
data = date : U
strftime = %A, %e. %B %Y
}
Hier eine kurze Erklärung zu strftime:
%A = Sonntag bis Samstag
%e = 1 bis 31
%B = Januar bis Dezember
%Y = Jahr: 2009
Mehr dazu findet ihr auf php.net/strftime
Die strftime-Formatangabe ‘%A, %e. %B %Y’ in diesem Beispiel erzeugt eine Ausgabe des Datums im Format ‘Freitag, 14. August 2009′.
Tags: php, ts, typo3, typoscript
Kategorie typo3 | 0 comments
ThemeForest has a nice feature; It allows the authors to upload zip files containing screenshots of their themes. A script then extracts these files and displays the images accordingly. Though I doubt that the developers used PHP to accomplish this task…that’s what we’re going to use! Here can you read the full article.
Kategorie php | 0 comments
Cheat sheets save time and help you quickly see what other ways of coding are possible.
I have put together a little post with the top most used cheat sheets for web programming.
I will be updating this post with newer entrees (I’m sure I missed some good ones) so if you know I link to a good one please add it in the comments section. Enjoy these Cheat Sheets
Tags: cheat sheets, css, jQuery, php, xhtml
Kategorie cheat sheets | 0 comments








