Thursday 11. March 2010

Archive for the ‘TYPO3’ Category

08.10.2009 23:20

I was doing some benchmarking and performance analyzing on servers running Wordpress and TYPO3 websites and the result was not than good actually. My setup could use quite a bit of website optimization to get the pages loaded faster.

So. How do one find extra performance, without buying new expensive hardware. One way could to experiment with caching options. The eAccelerator software is highly recommend for TYPO3 setup, so I did some testing with this and there was quite a bit of performance hidden here.

The installation was quite simple on my setup. I followed the installlation guide which was more or less a…

read on
08.10.2009 22:46

Have you ever had the need for inserting extra stylesheet or javascript files in your TYPO3 template? I am used to having a TemplaVoila setup, which has the nice feature of mapping part of the header as part of the template, but this is not really that flexible when using extension template and etc.

An easy way of controlling this, is to setup the javascript and css files from the template configuration. There are some different ways of doing this and I will demonstrate two of them here.

The template configuration examples should be self-explainable, so I will not comment them futher:

Javascript…

read on
21.08.2009 22:28

During the development of a gallery extension for TYPO3, I was having some performance issues when during the on-the-fly image scaling.

When displaying the images in the frontend, I would scale the images to a size specified in the plugin configuration. I was using the following code:

...
$imageConf['file'] = $row[image];
$imageConf['file.']['maxH'] = $this->conf[largeMaxH];
$imageConf['file.']['maxW'] = $this->conf[largeMaxW];
$thumbnailImage = $this->cObj->IMG_RESOURCE($imageConf);
...

The $row[image] would contain the image file to be displayed and the maxH and maxW is being set to the image sizes from the plugin configuration. When loading the page every image would be resized to the correct size, but when…

read on
29.07.2009 13:07

If you are building a site, which should support more than one language, there are two ways of doing this. Okay, perhaps there are more than two, but I will only give two examples.

The two I will cover is:
1. Manually adding language page
2. Integrated TYPO3 language support

1. Manually adding language page

This I will only touch briefly, as the solution should be obvious when the layout is presented. It should be very easy. Just create a tree like this and manually do the linking:
Manually Language Setup
That’s it.

2. Integrated TYPO3 language support

This is quite different compared to the first setup. We will…

read on
03.07.2009 22:19

There it was. A very basic TemplaVoila setup with two content elements. A content and a rightbar. The content is of course for all the regular stuff on the page, and the right bar has some standard highlights.

When both the content and the rightbar is of the type Content Elements, you have to manually insert elements on every single page, that should have output.

Wouldn’t it be nice, if the rightbar could have some default Content Elements outputted automatically, if you haven’t inserted any elements? Yes, it would!

So. To the fun part. Open your TemplaVoila section in the TYPO3 backend and edit the Data Structure (DS)…

read on
01.07.2009 22:05

This post will be about how to setup a TYPO3 template, with the option to have a different image on top of each page.

I’m using TemplaVoila with a very simple setup. 3 fields – header image, menu and a content-element. The focus will be on the header image element, which in my case is mapped to a <div > and saved as the type “TypoScript Object Path” with an “Object Path” named “lib.headerimg“.

The next step is to setup the template to insert an image in the lib.headerimg. This is done by inserting to following into the Template Setup field:

lib.headerimg = IMAGE
lib.headerimg…
read on