Jump to content
Ketarin forum

Subcategory


necrox
 Share

Recommended Posts

  • 3 years later...

I think it's cleaner and simpler to use a subcategory in the main program than to use a nested syntax. For example if I have CCCP in Multimedia, Codecs and I can just put {category}\{subcaetgory}\{url:file}. If I have a category Multimedia\Codecs then I have to use some obscure (to me) expression in order to generate the same path.

Link to comment
Share on other sites

You can use a custom variable and name it subcategory. This will give you what you're after. You can even use the same destination path in your template and it'll convert to something like .\media\codecs\cccp.ext for those with the subcategory and .\tools\\procexp.ext for those without (which will still work correctly).

Link to comment
Share on other sites

  • 11 months later...

Also you should be able to use multireplace or regexreplace to convert any cat/subcat style category field to cat\subcat for your path as long as you stick to one format ("cat/subcat" or "cat - subcat" or whatever) generating a replace-operation for your path-result should be fairly simple.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.