1. Anonymous User
  2. RO CSVI
  3. Monday, 26 December 2022
  4.  Subscribe via email
Hello,
I have about 10 main-categories and a lot of sub-categories in Jommla 3. If I export and then import them again in Joomla 4, all categories are taken over. But they are now all main-categories, also the subcategories. So there are no subcategories.
I use the "Example Joomla Categories Export Migrate" template for this.

Do I need to adjust anything else there?
There are about 60 categories and 10 of them are main-categories. The rest are subcategories and distributed among the main-categories
What can I do there?

Thank you.

RO CSVI 8.5.0
PHP version 8.0
Joomla! 3.10.11 / 4.2.6
Accepted Answer
Accepted Answer Pending Moderation
I received the solution by email and it worked right away.
Many thanks to Tharuna.

Solution from Support:
Thank you for sending the requested files. I was able to see the problem of why sub categories are not created. If you check the export file the first category club/hafen when imported RO CSVI looks for parent category club in database to get the parent ID but there is no such parent category in that situation. The parent category club comes in import file at row 44 in export file. It should be like parent imported first and then child category so they are linked on import.

To solve this in export template on Fields tab set Sort by field to lft and Ascending(recommended) or by level field Ascending, save the template and run the export.

This should get the parent categories in right place followed by child categories. Check the export file if you can see club category as first category. Run the import with this latest file and check the categories.
  1. more than a month ago
  2. RO CSVI
  3. # Permalink
Sorry, the discussion is currently locked. You will not be able to post a reply or a comment at the moment.