Feb182009
MODx Snippets
This site runs on MODx as do sites that I develop for clients. MODx is a great CMS. One way to extend the functionality of MODx is through snippets -- php code that can be included anywhere in documents, templates, etc. Here are some snippets I've written.
- SideSearch - This is the side search bar at the left of the page. This solution uses jQuery to animate the search widget and MODx's AjaxSearch to do the actual searching.
- GetImages - Pulls out all
tags from a given document, spits a certain number for them out.
- SkillCloud - This is what I use on my resume to make a skill cloud. It's kinda rough, but I figure it might come in handy for someone. I have XML stored in a document that is then parsed using simplexml then displayed as a cloud.
- TxpToModx - Copies articles from textpattern to documents in MODx
- LanguageChunk - A simple modx snippet for that outputs the ISO two letter country code for the current language.

