David Ansermot Web Developer / TYPO3 Integrator

2nov/110

TYPO3 – Get FCE’s header title in your DataStructure

Hi, today I'll give you a small but usefull tip if you use FCEs in your installations.
I prefere use the FCE's standard header title to name my FCEs and so display this title on the frontend.

24fév/110

TYPO3 – Clear cache tips

I made this small post to put together all the "tips" I know about TYPO3 clearing cache. All tips are TypoScript config lines. No customization or extensions.
Here we go.

24déc/100

TYPO3 – Easy Facebook share link in TypoScript

Here's a little snippet I wanted to share with you.
It generate the Facebook share link of your page automaticaly.

  1. 10 = COA
  2. 10 {
  3.         10 = TEXT
  4.         10.value = http://www.facebook.com/share.php?u=
  5.  
  6.         20 = TEXT
  7.         20.data = getenv:HTTP_HOST
  8.         20.wrap = http:// |
  9.  
  10.         30 = TEXT
  11.         30.data = getenv:REQUEST_URI
  12. }

Enjoy

1nov/100

TYPO3 – Force HTML mode in Direct Mail Subscription

If you use Direct Mail extension for TYPO3, you should want to only use HTML template instead of plain text template. This is possible but you must have the extension Direct Mail Subscription installed on your system.

20oct/100

TYPO3 : tt_news GIFBUILDER news title

If you want, like me, make your news title builded as a nice image with cool font, you can use this snippet.

Of course, you can do the same for the other wraps ;)
(remove spaces in HTML line 6)

  1. plugin.tt_news.displayLatest.title_stdWrap.cObject = COA
  2. plugin.tt_news.displayLatest.title_stdWrap.cObject {
  3.                        
  4.         10 = COA
  5.         10 {
  6.                 wrap = < div style ="background -repeat: no-repea t; | ">
  7.                                
  8.                 10 = IMG_RESOURCE
  9.                 10 {
  10.                         stdWrap.wrap = background-image: url( | );
  11.                                        
  12.                         file = GIFBUILDER
  13.                         file {
  14.                                 XY = [10.w],[10.h]+10
  15.                                 format = gif
  16.                                 quality = 100
  17.                                 backColor = #333333
  18.                                        
  19.                                 10 = TEXT
  20.                                 10 {
  21.                                         text.field = title
  22.                                         text.case = upper
  23.                                         fontSize = 14
  24.                                         fontColor = #ffffff
  25.                                         fontFile = {$lib.conf.template}fonts/TrajanPro-Bold.otf
  26.                                         niceText = 1
  27.                                         offset = 0,16
  28.                                         breakWidth = 286
  29.                                 }
  30.                         }
  31.                 }
  32.                                
  33.                 20 = TEXT
  34.                 20 {
  35.                         wrap = width: | px;
  36.                         value = 286
  37.                 }
  38.         }
  39.                
  40.                        
  41.         20 = TEXT
  42.         20 {
  43.                 wrap = <span class="hideMe"> | </span>
  44.                 field = title
  45.         }
  46. }

This code is easily extensible.
Hope it helps you ;)