Hi, I’m building a site with Revo and I need to integrate a series of forms that have been supplied by another developer. Because of time constraints it’s not practical for me to familiarise him with MODx so I need to keep the files in a format he is comfortable working with.
I’ve got 3 options in mind:
1. Step out of MODx completely and leave the form files as complete PHP files. This is probably the simplest approach but will be a pain for me as I’ll lose all the MODx elements, templates etc.
2. Create the pages in MODx and use snippets to include the form elements. This could be a bit convoluted as I would need to split each form page into 3 includes. Something like this:
[[!include? &file=`assets/snippets/form-php.php`]]
<html>
<head>
[[!include? &file=`assets/snippets/header-scripts.php`]]
</head>
<body>
[[!include? &file=`assets/snippets/form-content.php`]]
</body>
</html>
3. Pull MODx chunks into the php form files to create the page templates. I think this could work ok but
this post has made me question the method.
I hope that all makes sense, any advice on how best to approach this would be much appreciated.
Thanks