categories
  • I am using tango for my business (it small so it works well). I just imported 100+ categories. (using my own php script, getting ready to run some test before i dumpt 2k records LOL) that went well, problem is only the first one shows.
    i have the "id" set to the category number i need, and the "parent" is set at 0 (it was set the same as id but still got the same results).

    Is there another section i need to change? I added a test category using tango admin and it shows up just fine. int he mod_articles_cats it shows up under my 100+ categories.

    why does tango not see the other 99?
  • TangoCMS caches results from the database, so if you insert rows manually into the database the cache will need to be purged.

    You're also going to run into another problem with ACL resources, as each article category has it's own ACL resource in the format of "article-cat-x" where x is the article category ID. If this ACL resource does not exist, it's assumed that you do not have permission to it - and so it wont display.

    You'll have to modify your script to add entries to acl_resources and acl_rules. It is quite straight forward, but again you'll need to purge cache afterwards (or set the TangoCMS cache to disabled or tmp within Settings -> Cache & Performance)
  • HI thanks for the very informative respons. I figured out the acl_resources once i did a little digging. but even when i corrected that, and cleared the cache, it still did not display

    the acl_rules I completely missed so I am thinking thats the last step

    is there a wiki of some sort? need to know what id, role_id, resource_id and access is.
    gonna take a stab and say
    id is auto
    role_id ??
    resource_id the id of the cat as designated in the acl_resources
    access is user?

    thanks again..
    I hate rewriting everything from scratch.. tango looks powerful enogh to work, yet simple enough to use my script to put it on auto pilot
  • role_id is the value of the acl_roles.id you want. Roles will be your groups, such as admin, member, guest etc. If you want everyone access, simply use the guest role ID.

    access is simply 1 or 0 for true or false. So you'll want to enter in 1 here.

Howdy, Stranger!

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

In this Discussion

Tagged