How to create project template? lazarus / 11-Options ---------------------------------------------------------------------- Kunstbanause · 2008-12-11 07:01 Hi, is there any way to create my own project template that I can use in the "Create a new project"-window? If yes, how can I do it? Marc R. ---------------------------------------------------------------------- Leledumbo · 2008-12-11 11:59 Yes, edit ProjTemplates package and add your own there. ---------------------------------------------------------------------- Kunstbanause · 2008-12-11 13:53 Can you be more specific? I found a menu item "Project template options" within the Tools-Menu. But the only thing I can change is the directory where the IDE can find(?) templates. And that directory does not exist on my system. I can create it but what does a project template look like? Is there any tutorial about project templates? ---------------------------------------------------------------------- Leledumbo · 2008-12-12 03:50 QuoteCan you be more specific? Under components, there's a package named ProjTemplates. You can edit that package to include your custom one. QuoteI can create it but what does a project template look like? Is there any tutorial about project templates? I don't know either and I never see any tutorial about it. ---------------------------------------------------------------------- Kunstbanause · 2008-12-12 06:21 Quote from: "Leledumbo"QuoteCan you be more specific? Under components, there's a package named ProjTemplates. You can edit that package to include your custom one. Sorry, I had to be more specific myself. I wanted to know which files have to edited and how. I can't find any place within the files where I can add my own template. Unfortunately I can't find the default templates either... QuoteI can create it but what does a project template look like? Is there any tutorial about project templates? I don't know either and I never see any tutorial about it.[/quote] ---------------------------------------------------------------------- af0815 · 2008-12-12 06:37 QuoteI don't know either and I never see any tutorial about it. If you speak german, look inside of LazSnippets/LazInfos (on Sourceforge) there is an small chapter about this. ---------------------------------------------------------------------- Leledumbo · 2008-12-12 11:09 Nice! Are you the author? Would you mind translating it to English? It's not nice to rely on google translate. ---------------------------------------------------------------------- Phil · 2008-12-12 14:52 Quote from: "Leledumbo"Under components, there's a package named ProjTemplates. You can edit that package to include your custom one. No, I don't think that's how you add a custom template. There is a README.txt file but it doesn't look accurate and lacks any example. It appears as though you add a folder that defines your template to the templates folder under the Lazarus config folder. For example, on Windows this would be: C:\Documents and Settings\\Local Settings\Application Data\lazarus However, on my computer there is no templates folder so maybe you also have to create that. I guess this is why there are so few project templates. I would suggest that if you can't figure out how to do this, to post a bug report with Mantis. Just indicate that documentation is incorrect/out of date/incomplete or something. Thanks. -Phil