Hi I''m new to webgen and I''m trying to include a web form in my webgen generated site. If I include raw html, the generated source comes up as blank. The only meta information included on the page is the title. Do I need to do something special? Thanks, Sid
Hi, Please, could you paste your code? It seems that you may escape it with <notextile>form_code</notextile> or something like this. I prefer to embed webgen generated html with forms, generated by free online database <a href="http:// www.mytaskhelper.com">MyTaskHelper.com</a> Here you can design your Database, and than share it, using iframe. For example if you need to extend your webgen powered site with Mailing List: - Creating Database - Mailing List - Creating Entity "Email" - Creating Emails property - email, name, ... - Making your database public - Getting widget code - Copy/paste widget code to webgen source page, it will be like: <iframe src=''http://www.mytaskhelper.com/widgets/ dVGHOgMhGr3zQ9adbpuoHa/avd3heMhKr3zQ9adbpuoHa'' width=''600px'' height=''220px'' scrolling=''no'' frameborder=''0''> </iframe> - run webgen - enjoy Now you have static site with dynamic form! In this way you can create more forms, and thanks to webgen easily generate your site in a moment! Thanks, Igor
Am Sat, 18 Oct 2008 15:33:54 -0700 (PDT) schrieb Siddharth <smpatil at gmail.com>:> Hi > I''m new to webgen and I''m trying to include a web form in my webgen > generated site. If I include raw html, the generated source comes up > as blank. The only meta information included on the page is the > title. > > Do I need to do something special?webgen uses a Markup language like Textile or Markdown for writing page files by default. webgen 0.4.x uses Textile as default, 0.5.x Markdown. Both markup languages normally allow the inclusion of HTML tags but some HTML tags may be filtered out. So, as Igor already suggested, could you post your page file? This would help greatly! And what version of webgen are you using (run `webgen version`)? -- Thomas
On Oct 19, 8:36?pm, Thomas Leitner <t_leit... at gmx.at> wrote:> Am Sat, 18 Oct 2008 15:33:54 -0700 (PDT) > schrieb Siddharth <smpa... at gmail.com>:> webgen uses a Markup language like Textile or Markdown for writing > page files by default. webgen 0.4.x uses Textile as default, 0.5.x > Markdown. Both markup languages normally allow the inclusion of HTML > tags but some HTML tags may be filtered out. So, as Igor already > suggested, could you post your page file? This would help greatly! > > And what version of webgen are you using (run `webgen version`)? > > -- ThomasYes, I''m using Markdown for writing the pages, and I thought I should just be able to use the HTML form tags to generate the form. Anyway, I''m using Webgen version 0.5.5. The code for the default template is at: http://pastie.org/pastes/305004 The actual page on which I have the form only has the form tags in the content section. Thanks, Siddharth
> Yes, I''m using Markdown for writing the pages, and I thought I should > just be able to use the HTML form tags to generate the form. > Anyway, I''m using Webgen version 0.5.5. The code for the default > template is at: > > http://pastie.org/pastes/305004 > > The actual page on which I have the form only has the form tags in the > content section.I created a new site with ''webgen create formtest'', updated the default.template to be the one from the pastie and added the following page file as src/test.page: --- title: Test in_menu: true --- <form action="/pastes" class="new_paste" enctype="multipart/form-data" id="new_paste" method="post"> <label style="font-size:0.7em; color:#999">Language:</label> <select id="paste_parser" name="paste[parser]"> <option value="actionscript">ActionScript</option> <option value="c++">C/C++</option> <option value="css">CSS</option> <option value="diff">Diff</option> </select> <p> <textarea class="pastebox" cols="40" id="paste_body" name="paste[body]" rows="22" tabindex="20"></textarea> <input id="paste_authorization" name="paste[authorization]" type="hidden" value="booger" /> </p> <input type="hidden" name="key" value="" /> </form> After running webgen, the output looks fine, ie. all of the above shows up in the generated HTML file. So, it may be your configuration file? Could you post it? -- Thomas