Tag archive for "howto"

Access/ownership of new pages in typo3

Typo3 has a very powerful workspace feature. You can use it to give different groups different access rights to a sitetree. This is useful when you have many users, groups and workspaces. One problem that can appear when you don't configure everything properly is that new pages, created by an ... more

Samsung ML-1610 on Debian GNU/Linux

I bought this printer a long time ago and it was connected to my Mac until that box died. I tried to install it once but never tried again after I didn't get it to work in less than five minutes. Well, this time I did invest like ten minutes ... more

Password protecting the wp-admin directory

Several places recommend to block the WordPress admin area with a password. While this certainly is a good idea, implementing it properly is non-trivial. One of the problems is that the WordPress Ajax handler script is located in the admin directory. So password-protecting the admin area will break all Ajax ... more

How to add support for navigation menus to your WordPress theme

The new navigation menus system in WordPress 3.0 looks promising, but in my opinion it's not very usable yet. Anyway, here's one way to add navigation menus to your theme while maintaining backward compatibility: In your theme's functions.php add something like the following code: <?php function mytheme_addmenus() { register_nav_menus( array( ... more

Change Typo3 template depending on column content

Let's assume you don't just want to inject some HTML if there is content in a column, but you want to use a completely different layout. This isn't hard to accomplish, see the example: tmp.templateFile = COA tmp.templateFile { 10 = COA 10 { if.isFalse.numRows < styles.content.getRight 10 = FILE ... more

Change template if content exists in Typo3

If you build sites with Typo3 you might want to use a smart template that uses different markup for different pages. Of course you can define as many templates as you like in Typo3. But what if you want to use a two and a three-column layout, depending on if ... more

Using any Debian box as a wireless access point

I just lost an hour trying to configure a Thinkpad T41 as a wireless access point. Most of that time was due to problems with the built-in wlan interface and a kernel recompile to use a prism54-based PCMCIA card. This is mostly a post to remind myself what to do, ... more

Mailman, HTTP POST and 301 redirects

After changing my domain configuration a little (do 301 redirects from nkuttler.de to www.nkuttler.de/ etc.) I noticed that my mailman web interface stopped working. I tried to moderate, change settings etc., but once the form was submitted nothing happened. After some digging I found the problem: 301 redirects don't pass ... more

Typo3 in 15 minutes

Ok, the title is a little exaggerated. You'll need to install Typo3 yourself and I assume that you can log into the backend. But if those are given, you're pretty close to creating your first Typo3 site. In the backend, go into the Web->Page view. Click on the small world ... more

Very simple Typo3 navigation

Sometimes I get asked how to build a menu in Typo3. It's really easy, but TSref isn't very verbose. So here's how to build a basic, valid Typo3 navigation: foo = HMENU foo { # I use this because I like to have one root page # that links to ... more