Home / Support Center / Tutorials, Guides & FAQs / DJ-Classifieds tutorials and guides / How to import categories and subcategories to DJ-Classifieds
How to import categories and subcategories to DJ-Classifieds
Thursday, 14 May 2015 04:57
How to import categories and subcategories to DJ-Classifieds 5.0 out of 5 based on 3 votes.

Import categories and subcategories for dj classifieds

Following the article about importing locations to DJ-Classifieds here's tutorial on how to import categories and subcategories the same way!

Creating one easy .csv allows you to import all your categories and subcategories to DJ-Classifieds.

To do it you’ll need to be able to access your database via phpMyAdmin.

Firstly prepare the .csv file with all the categories and subcategories you want to add (You’ll find the exemplary .csv file at the end of the article).

To prepare the file, you first need to have the list of your categories and subcategories in any format and then create the .csv file that reflects the database structure of categories in DJ-Classifieds.

The database structure of the categories in DJ-Classifieds looks like in the table below, and the exemplary file you find here: Sample DJ-Classifieds categories

Let's go

The structure of the .csv file you'll need is quite straight forward: 

  • "id" - id
  • "name" - category name
  • "parent_id" - parent category id
  • "price" - price for the category
  • "description" - description of the category
  • "icon_url" - not used - buy need to stay in .csv
  • "ordering" - category ordering 
  • "published" - published or not  
  • "autopublish" - set if the ad should be automatically published (0 - global setting, 1- yes, 2 - no)
  • "metakey" - meta keywords
  • "metadesc" - meta description
  • "access" - access to submission of adverts restricted for specific Joomla groups  
  • "alias" - link alias
  • "points" - price in points
  • "ads_disabled" - setting if adverts can be submitted or not to this category.
  • "theme" - theme for category
  • "access_view" - joomla group restriction for viewing this category  
  • "access_item_view" - joomla group restriction for viewing adverts from this category  
  • "restriction_18" - adults restriction

Once you’re ready with your .csv file you can move to import it to the database.

First open your Cpanel account, open phpMyAdmin


When in phpMyAdmin:

  1. open your database
  2. and find dj-classifieds categories table and open it (the name of the table will be [yourdbprefix]_djcf_categories)


Next (when in categories table) click „Import” in the top bar
Import categories phpmyadmin


Now you’re ready to import the .csv file

Import categories to DJ-Classifieds

  1. browse for the .csv file here
  2. make sure to skip the first row (insert „1”)
  3. insert „;” (semicolon) in Columns separated with:
  4. click „Go”

Imported categories/subcategories are now visible in your DJ-Classifieds installation

You can download exemplary .csv file with regions here: DJ-Classifieds categories / subcategories exemplary .csv (3.44 kB 2015-05-18 06:42:16)

There's a slight difference in columns order. Below you can find a video tutorial on how to reorganize columns in phpMyAdmin if needed.

Found this article interesting? Subscribe for more.
Or share this article with your friends.

Subscribe to the Telegram bot / Subscribe to the Messenger Bot
User Rating:  (3)


Ultimate classified ads solution for Joomla.

Learn more