Skip to content

Commit

Permalink
Add contact-for-v2 resource-type
Browse files Browse the repository at this point in the history
  • Loading branch information
Cedric Staub committed Oct 1, 2012
1 parent 30c4a25 commit 3862cb1
Show file tree
Hide file tree
Showing 2 changed files with 408 additions and 0 deletions.
28 changes: 28 additions & 0 deletions src/resources/contact-form/resource-v2.xml
@@ -0,0 +1,28 @@
<?xml version="1.0"?>

<resource xmlns="http://www.wyona.org/yanel/1.0"
name="contact-form-v2"
namespace="http://www.wyona.org/yanel/resource/1.0"
class="org.wyona.yanel.impl.resources.contactform.ContactResourceV2"
>
<description>
Contact form for sending email
</description>

<rtd>
<!-- Mandatory properties -->
<!-- TODO: Allow more than one "to" -->
<property name="to"/>

<!-- Optional properties -->
<property name="subject"/>
<property name="xslt"/> <!-- Global XSLT -->
<property name="xslt-body"/> <!-- XSLT to render body (actual form) -->
<property name="mime-type"/>
<property name="from"/> <!-- INFO: If not configured then the email address specified of the form is used as from address -->
<property name="email-validation-regex"/>
<!-- NOTE: Please note that one needs to reload/restart Yanel in order to activate changes of host and port! -->
<property name="smtpHost"/>
<property name="smtpPort"/>
</rtd>
</resource>

0 comments on commit 3862cb1

Please sign in to comment.