Archive for September, 2008

Integrating with jQuery - Adding Pagination

Tuesday, September 30th, 2008

This stuff can be seen as a continuation of an earlier tutorial integrating external search into a MODx site, i.e. a standalone search logic separate from MODx. This approach is however not limited to any kind of CMS or solution whatsoever, it’s totally agnostic through the use of Ajax. ... Read More

Automatic multiple line comments

Monday, September 29th, 2008

I’ve recently had the opportunity to check out TextMate and it has a nice feature that lets you select some lines and automatically add # to the beginning of them in order to comment them out.... Read More

DQL recipes

Tuesday, September 23rd, 2008

I had to start covering various Doctrine snippets for future reference. This post will be updated with more of them as they appear.... Read More

MODx TagLinks Problems and Solutions

Wednesday, September 17th, 2008

I just went through the MODx blogging tutorial for real, with the intent of actually creating the exact same blog functionality myself. I ran into some problems with friendly/pretty URLs and this is a description of how I solved them.


First of all make sure you have set the document alias for the category documents in low caps only. I haven’t fixed the problem of different caps although you might be able to take care of that one through the .htaccess file. Actually the whole problem could possibly be solved in the .htaccess file but I’m more comfortable with a PHP solution.... Read More

Working with TYPO3 4.2 and TemplaVoila 1.3.7

Monday, September 15th, 2008

Introduction... Read More

Styling Lists and Boxes with Round Corners

Monday, September 15th, 2008

Let’s begin with the menu. The below CSS listing is only concerned with the menu list itself, not the box that contains it, we’ll get to that later.... Read More

Trackbacks with Google Blog Search and Zend Feed

Saturday, September 13th, 2008

I’ve wanted to do automatic trackbacking by linking to posts that are linking to any given article of mine, for quite some time now.... Read More

URL - from YouTube insert HTML - with preg_match

Friday, September 12th, 2008

A friend just needed help, he wants people to be able to put the YouTube insert code into a database. However it seems that there are some display related things in there he can live without that people might mess with and of course we don’t want that.... Read More

Pico Lisp and JSON

Thursday, September 11th, 2008

Yet again I have to do some documenting so I know what the hell I’m doing since I’m all over the place at the moment. Doing something here and then moving over to do something over there and then coming back to coding this and that. If you’re this unstructured you need crutches and this documentation is that, it will enable me to get back to this and do easy debugging in the future, it will trigger memories.... Read More

YAML CSS Framework with Borderless Banner

Wednesday, September 10th, 2008

I should have done this a long time ago. I’ve probably redone the below adjustments five times already, wasting more than a full working day all in all, testing by trial and error.
yaml_banner_border.jpgyaml_banner.jpg
Normally the YAML CSS framework looks like the picture to the left when you add a banner without changing anything. Unfortunately all the sites I’ve been involved in required the banner to have no borders. The below CSS will result in a look like in the picture to the right.... Read More