Tech Notes
Override Content
Recently I was working on a portion of a web site that required dynamic menus. However, I needed to override those dynamic menus for certain pages in the web site with custom menus. It is possible to achieve this using typoscript.
Dynamic Navigation Menu for Site Depth
Include the following typoscript in your root page template to dynamically generate a text based navigation menu that provides the full path of the current page from the root of the site.
depth = HMENU
depth.special = rootline
depth.1 = TMENU
depth.1.NO.linkWrap = | / |*||*| |
This will give a root line something like this:
Home / [...]
Flush DNS Cache
You can clear the DNS cache on OS X by entering the following command at the shell prompt.
lookupd -flushcache
On a windows 2000/XP/2003 system you would type the following from a command prompt.
ipconfig /flushdns
Widgets on the Desktop
Sometimes you may want to display widgets on your regular desktop, rather than accessing them through Dashboard. Thankfully, achieving this is pretty easy. Type the followin in a Terminal window:
defaults write com.apple.dashboard devmode YES
Log out of your session, and then login again to restart the Dashboard process. That’s it! You now have the capability of [...]
HTTP redirect using a .htaccess file
If you are sharing one IP address for multiple web sites, it may be necessary for you to setup some redirects. Whatever the reason, here is a sample of a .htaccess file that will do just that. This can also be used in the section of the Apache httpd config file.
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} www.mydomain.net
RewriteCond [...]
