Create categories in bulk in JV-LD

JV-LD provides a utility by which you can create tens and hundreds of categories in a single run in JV-LD backend, without going through the trouble of creating one category everytime, using categories manager. This utility can be used, whenever you want to add categories in bulk to the existing set of categories in directory or when you want to add categories first time.

 

snagit29

The utility is called "Import Categories from Text File" and is available in JV-LD Utilities section in backend. This utility will create a category hierarchy structure in your directory based on the data in a pre-defined template file. This can used when you want to add lots of categories to the directory. In such a case, manually creating categories would take hours together where as you can do it faster using this tool.

Note: Only new categories can be added using this utility. Existing categories cannot be edited using this utility. To add new categories, please make sure that, the desired ID does not exist already in the directory.

How to create a template file?

This feature builds your entire set of categories from a pre-defined text file. The pre-defined template must be a .txt file only. Please follow the below instructions to create/edit the directory structure text file

  • The text file must be saved in UTF-8 without BOM encoding
  • Every record or sentence in the file corresponds to one category or a subcategory
  • A record is of the following format

    {Category Name}:{Category Path}:{Keywords}:{Description}

  • If you do not wish to provide keywords (comma separated) for a category then you may please provide na as value for that field.
  • If you do not wish to provide description for a category then you may please provide na as value for that field.
  • Path must be a / separated set of category names starting from top level category till the category being added.

    For example, Arts:arts:na:na will add 'Arts' as top level category with 'arts' as its path. Photography:arts/photography:na:na will add 'Photography' as a child of Arts category. Path must not contain any blank spaces or underscores or special characters. Only hyphen and lower case letters are allowed.

  • Do not use the word links as category name or category parent name
  • Each category will be configured to accept links by default. Can be re-configured on an individual basis using the Categories tab in toolbar, once directory creation is completed
  • Each category will be configured to hold unlimited number of links. This can be re-configured on an individual basis using the Categories tab in toolbar, once directory creation is completed
  • Create any number of categories as per your requirements
  • Category will not be added if there is already an existing category with same path.

A sample file - categories_import.txt is also included in the product distribution in {joomla}/components/com_jvld/temp/templates folder for your reference. Once you create/edit the file, please select and upload it.

Still need help? Contact Support Contact Support