Currently, there’s no direct way of doing this. You can pass an existing folder ID but you can’t create folders on the fly. However, you can create folders via an asset field (with dynamic path) attached to an entry type so there is an option that could work if you really need this done. Create a section/entry type that has two fields, an Asset field with a ...


So this was a simple fix and not to use {% %} tags but instead to use {{ }} tags. Changing the above logic in the subdirectories filed like so seems to have resolved the issue. {{ section == 'Company' ? slug : company.one|kebab }}/{section|kebab}

Only top voted, non community-wiki answers of a minimum length are eligible