I cannot afford to commission you guys to make it, but i would buy it as an add-on, I was thinking, it would be brilliant were you to have a code generator that would generate the code for forms.
See I understand you have the code generator, but I would like a different type, when I create forms in the cms, I would like to be able to generate the code for that specific form, and then past it to my own website page. Yes your cms is lovely but, I have the membership plugin, I can paste that onto my site page, but sometimes it is nice to be able to take specific input from members to my site without them having to enter the cms in itself, thus, were I to be able to create a form as normal in the cms, then have the option of code generating, thus allowing me to copy that exact form, and pasting it onto a page would really really be brilliant.
Hope your all very well.
This would be a good thing to have.
Would we start with the /lib/menus/_codeGenerator/detailPage.php, renaming it and saving it as a plugin, then editing to produce a simple form?
We would require the "Select Section", but not "Which Record". The "Show Uploads" would also go initially as the file upload function via a form would be too complex?
For the output, we would need 3 for-each loops.
- code to be included to check each field for errors (so each field mandatory by default - but could be simply deleted)
- code to submit each field to the selected section,
- code to display the input code for each field, wrapped in a form tag.
It would be good to have file uploads, spam protection, email templates etc, but I expect we can handle that as required.
We've done a few of these internally, but nothing we liked enough to release.
The simplest implementation would be to create a simple add form with an example of each field type, and then have the code generator repeat that field content for each field. Wysiwyg and uploads are more advanced, but for the rest of the fields it should be pretty straightforward.
Issues that come up for us are what to do when fields are added in the CMS (we can't really update the form dynamically, or if we do, it makes it limits styling and customization).
If someone wants to mockup a bootstrap add form with an example of each field type I can turn it into a code generator plugin. First version would be very basic though (that's a good way to start anyways as it gets released sooner).
Let me know, thanks!
Something like the attached OK?
Morning Dave and Toledoh,
Re the comment "it makes it limits styling and customization" i strongly believe that no styling should be added at all as that may break the over all feel and look what is already been created in a site by the user/web-developer.
i think it would be great to have coe generator output as simple as poss aka, textfield, textbox (definitely not a wysiwyg), listmenu.
I just want to let you know that I've already started working on this.
For starters, I'm developing plugin functions that will generate a simple add form that inserts a record into the database.
The form code will be as simple as the field label and the HTML code for the field, for now.
And for inserting a new record, I will add simple error checking. ie. required fields must have values.
I will keep you posted.
PHP Programmer - interactivetools.com
Brilliant Daryl thank you,
I do feel there will be a big demand fot it.
Great news! I've got a project on board with a couple of huge forms - will be a blessing to have!