Atozed Forums
subfolder in Templates folder - Printable Version

+- Atozed Forums (https://www.atozed.com/forums)
+-- Forum: Atozed Software Products (https://www.atozed.com/forums/forum-1.html)
+--- Forum: IntraWeb (https://www.atozed.com/forums/forum-3.html)
+---- Forum: English (https://www.atozed.com/forums/forum-16.html)
+----- Forum: IntraWeb General Discussion (https://www.atozed.com/forums/forum-4.html)
+----- Thread: subfolder in Templates folder (/thread-2466.html)



subfolder in Templates folder - raulevm - 07-26-2021

Good morning...
  I am using HTML templates and it has been working in the traditional way with the "Templates" and "wwwroot" folders. I would like to know if it is possible to create subfolders inside the "Templates" folder to sort the HTML files by categories. Is it possible to create subfolders inside the "Templates" folder or do I have to put all the .html files in the same folder? This does not work for me:

IWTemplateProcessorHTML1.Templates.Default = pages/profile/overview.html

The folder "pages" is inside the folder "Templates".

How to proceed in these cases in general ?. I am using IntraWeb 15.2.32 with Delphi 10.4.2, thanks in advance.


RE: subfolder in Templates folder - Alexandre Machado - 07-26-2021

It does work. Maybe the problem is the path delimiter (you are actually using the URL delimiter).

Try

pages\profile\overview.html

I'm changing our code base to make sure that URL delimiters are replaced by path delimiters before using the path, so it should work in any case


RE: subfolder in Templates folder - raulevm - 07-31-2021

thanks it works