Monthly Archives: December 2010

wkhtmltopdf on freebsd 8.1 amd64

I compiled wkhtmltopdf 0.9.9 and 0.10.0_rc1 using the modified qt-version(git clone git://gitorious.org/+wkhtml2pdf/qt/wkhtmltopdf-qt.git wkhtmltopdf-qt). The resulting binary does not need an X Server.

The best results are delivered by the wkhtmltopdf 0.9.9

It took me a total of approx. 20 hours 🙂 …. but now I’m really proud 😀

You can download the zipped static binary here wkhtmltopdf 0.9.9:
wkhtmltopdf

typo3 layered menu bug update

Regarding http://bugs.typo3.org/view.php?id=16165 Torben Hansen said today:

“Since 0012376 got into the CORE (TYPO3 4.4.5), the TMENU_LAYERS of one of my TYPO3 sites donÂŽt work anymore. I get exactly the same error (Too much recursion) as described in this bugreport. The menu-DIVs do not have unique IDs, which leads to this error.

The Bugfix in 0012376 works fine with menus having one sublevel. If you have 4 sublevels, it does not work correctly, since “substr(md5(‘gl’ . serialize($this->mconf)), 0, 6)” does not produce unique results.

The approach from this bugreport using PHP uniqid works great and every menu has its unique ID.

So maybe the “uniqid-solution” – suggested by us – will be taken into consideration for future releases ….

typo3: remove htmlspecialchars in header

If you have a content element in typo3 with a header value containing “special chars” like romanian “diacritics” the header will be rendered like sh… – because the “special chars” are transformed using the &#xxx;-syntax, after which the & is transformed into &. The result looks like: &#xxx;

To get rid of this write in the setup part of your template:
lib.stdheader.10.setCurrent.htmlSpecialChars = 0