Other [B4X] Projects Templates - Questions

Roberto P.

Well-Known Member
Licensed User
Hi all,

I would like to better understand the potential offered by the new template management (https://www.b4x.com/android/forum/threads/b4x-projects-templates.119901/):

- can custom templates also be created?
- new classes \ objects can be created in a similar way to templates
- templates create 3 folders with 3 projects (very well), but if I add objects and classes do I have to do it in each project or is there a way to create having the same thing for all 3?

Thank in adavance
 

Erel

Administrator
Staff member
Licensed User
1. Yes. These are regular zip files with the b4xtemplate extension. Files with $APP_NAME$ are replaces with the project name.
You can create new templates and put them in the additional libraries folder.
2. This is already supported by a different feature: https://www.b4x.com/android/forum/threads/custom-class-templates.90550/#content
3. Not exactly. B4XPages template is built like that. You can create 100 projects or 1 project with templates.
You should never create multiple copies of the same class. Add the class to the parent module (there is such an option in the new module dialog) and later add the module to the other two projects as an existing module and make sure not to make a copy of the module.
 
Upvote 0

DonManfred

Expert
Licensed User
The Templatefiles *.b4xtemplate are just ZIP Files with the content.
Check the file B4XPages.b4xtemplate for ex. to see the Content of the B4XPages Template.
 
Upvote 0
Top