Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID Sign In with Twitter

In this Discussion

Anyone have cmdline script to generate categories?

I would like to create a perl script to generate categories and sub-categories by performing the appropriate mysql calls.

Has anyone done anything similar that they would be willing to share? It doesn't have to be written in perl, I can translate it over if necessary.

The tricky part seems to be re-generating the left and right tree ids for all categories once a new category has been added.

Also if the Vanilla Devs could point me to the Vanilla php code that generates the mysql for adding a category that would be better than nothing (I've started looking but haven't found it yet).

I saw that there seems to be an AddOn called SimpleAPI that I was hoping could work (though I would rather run a script on the host to avoid any security issues), but it doesn't seem to be available just yet.

Thanks!

Comments

Sign In or Register to comment.