Hi! I am having lots of problems with adding, editing and deleting categories:
1. I cannot create root level category. It keeps setting it as a sub category under the latest root category.
2. When I use the "Save as Copy" button I get this error Missing field in database: AbookTableCategory   catid.
3. In general the cpanel of categories is very buggy. Hard to explain but the experience is not common to normal Joomla behaviour.
I am using Joomla 3.3.6. Could that be the reason?
OK i discovered that for some reason aBook does not properly create root category. It automaticaly puts it under lastly used category.
Save as Copy is not working because this function is missing in administrator\components\com_abook\models\category.php
protected function generateNewTitle($parent_id, $alias, $title)
{
// Alter the title & alias
$table = $this->getTable();
while ($table->load(array('alias' => $alias, 'parent_id' => $parent_id)))
{
$title = JString::increment($title);
$alias = JString::increment($alias, 'dash');
}
return array($title, $alias);
}
doctor78, many thanks!!!!!!
I added this function.