[TYPO3-english] Turn headings into GIFBUILDER images

Christopher Torgalson bedlamhotel at gmail.com
Wed Feb 23 16:59:43 CET 2011


Hi,

On Wed, Feb 23, 2011 at 6:28 AM, Enrique Moreno Tent
<enriquemorenotent at gmail.com> wrote:
> I want to make every heading <h1> render with a GIFBUILDER, with this code:
>
> tt_content.header>
> tt_content.header = IMAGE
> tt_content.header {
>        file = GIFBUILDER
>        file{
>            XY = 200, [10.h]+30
>            10 = TEXT
>            10{
>                format = png
>                text = Hello World!
>
>                fontSize=24
>                fontFile = fileadmin/templates/web/fonts/ClanOT-Medium.otf
>                fontColor=  #333333
>                offset=0,24
>                niceText=1
>
>            }
>            backColor = white
>            transparentBackground = 1
>            transparentColor = white
>            transparentColor.closest=1
>        }
>
> But this only works for the content element "header", not for the header of
> other content elements. How can I do it?


Check the TS templates that come with my bh_firtools extension [1]--I
use GIFBUILDER images as background images for headings. It should be
almost exactly what you're asking for. Incidentally, if it's only a
matter of non-standard fonts, you may have an easier time using web
fonts these days...

[1] http://typo3.org/extensions/repository/view/bh_firtools/current/

-- 
Christopher Torgalson
http://www.typo3apprentice.com/


More information about the TYPO3-english mailing list