Categories problems

Started by doctor78, 11 December 2014, 17:47:50

Previous topic - Next topic
A financial contribution is greatly appreciated as a support, to help us to keep live the project.
If you like this project you can donate some piece of BitCoin to this address: bc1qy5tgq6tvrckac2a57unxvqcnxamrvhduve9sj9

doctor78

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?

A financial contribution is greatly appreciated as a support, to help us to keep live the project.
If you like this project you can donate some piece of BitCoin to this address: bc1qy5tgq6tvrckac2a57unxvqcnxamrvhduve9sj9

doctor78

OK i discovered that for some reason aBook does not properly create root category. It automaticaly puts it under lastly used category.

doctor78

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);
      }

federica

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.
Informatizzati [url="https://informatizzati.org"]https://informatizzati.org[/url]
Stacca la spina [url="https://disconnessi.org"]https://disconnessi.org[/url]

A financial contribution is greatly appreciated as a support, to help us to keep live the project.
If you like this project you can donate some piece of BitCoin to this address: bc1qy5tgq6tvrckac2a57unxvqcnxamrvhduve9sj9