# Ning import script

**URL:** <https://meta.discourse.org/t/ning-import-script/24358>\
**Category:** Feature\
**Tags:** feedback\
**Created:** [23. Januar 2015 um 17:29 UTC](https://meta.discourse.org/t/ning-import-script/24358 "2015-01-23T17:29:28Z")\
**Posts on this page:** 1\
**Showing post:** 38

<div class="post-metadata">

**Author:** ![alehandrof](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alehandrof/32/119526_2.png) [@alehandrof](https://meta.discourse.org/u/alehandrof)\
**Post date:** [9. März 2016 um 21:51 UTC](https://meta.discourse.org/t/ning-import-script/24358/38 "2016-03-09T21:51:57Z")

</div>

For anyone playing along at home.

If you want to add import custom categories like this:

> [@alehandrof](#):
>
> ```ruby
> def import_XYZ
> puts "", "Importing XYZ"
> import_topics(@XYZ_json, "XYZ")
> end
> 
> ```
> 
> (Where XYZ one of events, groups, pages, etc.)

Make sure to also edit this line in `ning.rb` accordingly:

```ruby
create_categories((["Blog", "Pages", "XYZ"] + @discussions_json.map { |d| d["category"] }).uniq.compact) do |name|

```

Otherwise you’ll end up with everything in the “Uncategorized” category.

---

_[View the full topic](https://meta.discourse.org/t/ning-import-script/24358)._
