Tag archive for "howto"

How to add support for navigation menus to your WordPress theme

2010-06-08

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

2009-09-05

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

2009-05-24

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

2009-02-25

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

2008-11-09

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

2008-10-18

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

2008-10-08

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

DjangoPythonBitcoinTuxDebianHTML5 badgeSaltStackUpset confused bugMoneyHackerUpset confused bugX.OrggitFirefoxWindowMakerBashIs it worth the time?i3 window managerWagtailContainerIrssiNginxSilenceUse a maskWorldInternet securityPianoFontGnuPGThunderbirdJenkinshome-assistant-logo