template-builder icon indicating copy to clipboard operation
template-builder copied to clipboard

Deeper folder structure in “add item” dialog

Open JonasDam-Dynamicweb opened this issue 9 years ago • 1 comments
trafficstars

I'm working on creating a template pack with item templates, using TemplateBuilder and SideWaffle.

So far, I've managed to get some templates created, and installed alright.

My challenge is that I can only create a folder structure that is one folder deep - that is, all my templates are placed in the same folder. I was hoping to be able to have a deeper heirachy:

  • MyCompanyName
    • CategoryOneTemplates
      • templateOne
      • TemplateTwo
    • CategoryTwoTemplates
      • TemplateThree
      • TemplateFour

It seems that any folderstructure I create in the "ItemTemplates" folder is simply ignored, apart from first child level Folders.

setting "ls-TemplateSubFolder" in template-builder.props lets me define a folder name that is identical for the lowest levels in the folder hierarchy, but that's not really what I'm looking for.

Is there a simple way to achieve a deeper structure?

JonasDam-Dynamicweb avatar Mar 23 '16 09:03 JonasDam-Dynamicweb

You can add a _preprocess.xml file with the full path, for example: https://github.com/ligershark/side-waffle/blob/master/TemplatePack/ItemTemplates/Extensibility/SideWaffle/SW-ProjectVSTemplateFile/_preprocess-template.xml.

FYI it's better to raise issues like this in the SideWaffle repo because we have more eyes on that repo. If there.

sayedihashimi avatar Mar 23 '16 15:03 sayedihashimi