Author Topic: Categories problems  (Read 1552 times)

doctor78

  • Guest
Categories problems
« on: 11 December 2014, 17:47:50 »
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?

doctor78

  • Guest
Re: Categories problems
« Reply #1 on: 11 December 2014, 20:54:04 »
OK i discovered that for some reason aBook does not properly create root category. It automaticaly puts it under lastly used category.

doctor78

  • Guest
Re: Categories problems
« Reply #2 on: 11 December 2014, 22:23:15 »
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);
      }

Offline federica

  • Amministratore
  • Delfino
  • *****
  • Posts: 1.006
  • Karma: +1/-0
Re: Categories problems
« Reply #3 on: 15 December 2014, 09:50:38 »
doctor78, many thanks!!!!!!
I added this function.
Al mondo ci sono 10 tipi di persone, quelli che hanno capito il codice binario e quelli che non l'hanno capito.
http://www.antivirushelp.it
stacca la spina!