how to change category number or clear all categories

  • I delete some categories and create new ones, but category number is not started from 1, but the largest deleted category number(delete 1~9, create a new one but id is 10 ). This makes me feel bad.

    I know I have to do with mongodb to do such thing. I've tried to update cid n some related stuff, but after just a few seconds it went back to origin. So how can I change cid or delete all categories related datas and start from cid=1?

    I used db.objects.find( {_key:"category:2"} ).pretty() and get some info. tried to update cid&order&slug

  • Global Moderator Plugin & Theme Dev

    Delete all of your categories and change the global object nextCid property to 0.

  • thx, I gonna try

Suggested Topics

| | |

© 2014 – 2022 NodeBB, Inc. — Made in Canada.