Генерация алиаса статьи
Надо добавить код в метод check в класс таблицы производный от JTable, предворительно подключив класс.
JLoader::register(JString,JPATH_LIBRARIES.'joomla/utilites/string.php');
Код метода:
public function check()
{
// Check for a title.
if (trim($this->title) == '') {
$this->setError(JText::sprintf('must contain a title', JText::_('Category')));
return false;
}
if (empty($this->alias)) {
$this->alias = JString::strtolower($this->title);
}
$this->alias = JApplication::stringURLSafe($this->alias);
if (trim(str_replace('-', '', $this->alias)) == '') {
$this->alias = JFactory::getDate()->format("Y-m-d-H-i-s");
}
return true;
}