AnsweredAssumed Answered

Create form in the site page

Question asked by mygnr on Oct 12, 2012
Hi,

I'm trying to create form in newly created site page. Where I could enter some data.
Form example screenshot:[img]http://s12.postimage.org/pj5xw6hkd/form.png[/img]

I have created new page:
home.xml:
<page>
   <title>Demo Home</title>
   <title-id>page.demoHome.title</title-id>
   <description>Demo Home Description</description>
   <description-id>page.demoHome.description</description-id>
   <template-instance>home-three-column</template-instance>
   <authentication>none</authentication>
</page>

home-three-column.xml:
<template-instance>
   <template-type>com/tribloom/demo/home</template-type>
</template-instance>

home.ftl:
<#include "/org/alfresco/include/alfresco-template.ftl" />
<@templateHeader>
   <!– CSS and JavaScript files are linked in here –>
</@>
<@templateBody>
   <div id="alf-hd">
      <@region id="header" scope="global" />
      <@region id="title" scope="template" />
      <@region id="navigation" scope="template" />
   </div>  
   </body>
</@>
<@templateFooter>
   <div id="alf-ft">
      <@region id="footer" scope="global" protected=true />
   </div>
</@>

And now I want to add form in this site. I need that fields would be rendered form standard ftl's (selectone.ftl,textfield.ftl, attachments.ftl… )
How could I make this?

Should i define new form in the share-config-custom.xml file, and then use <config evaluator="xxx" condition="xxx"> ?

Outcomes