This doesn't work for joomla 2.