Great. I had a few assumptions apparently going in the right
direction. But know I _know_ which is better then _assume_ :-)
I'll upgrade to 1.0.2 (I am actually using 1.0.1 now), test everything
once more and then update the Wiki page.
-will
On 18.09.2009, at 14:45, Teresa Miyar wrote:
On Sep 18, 2009, at 1:04 PM, Will Scheidegger wrote:
Thanks for the answers, Teresa. I tried to add your comments
together to a complete "workflow" but I'm not sure that I got it
all right:
- So the form itself does not contain any "hints" or info which
would be transmitted to the server when the for is submitted. Only
the form data is being submitted, and...
maybe you are not using 1.0.2 so you haven't seen that the paragraph
uuid is sent with the form that how we support several forms in the
same page
- an empty textfield named "field"
- Why is this hidden by CSS?
- Why not simply using a <input type="hidden" name="field"
value="" />?
Again, this has changed in verison 1.0.2, before it was hidden by
css as the hidden style didnt work with our css in firefox
- This empty "field" parameter seems to be used as "honey pot"
- Ah... honey pot to block form abuse?
yes, when you send the form this field will be checked and if still
empty the form will be processed, (usually the robots fill in all
the input fields)
- So that's why you are using a <input type="text" /> and not
<input type="hidden" />?
yes
- Now the page is called again with the form data
- You said that the form processors kick in depending on athe
"actionResult" parameter the model returns...
-> But how does the model know that it has to do actual work an
not just display the empty form?
'actionResult' is the return of the execute method in the model, in
the freemarker template you check for the actionResult values, what
means you decide if you want to display things depending on this
value. For the form module is initialized as empty string
String result = "";
try {
if (!hasFormData()) {
return "";
}
Checks if the a form has been post and if the uuid is this
paragraph's uuid, if there is no data actionResult will be "" so is
what you get when you load the form, otherwise if there was data in
the form you will get success or failure, and if you go to the
template you will see that actionresult is checked and is the
template that decides what to display depending on its value.
- And you said, that multiple forms on one page are now possible
because the model will check the uuid...
-> But how does the model know which form has been sent when no
uuid was transmitted (since there is no <input type="hidden"
name="uuid".../> tag in the form)?
you will see it in 1.0.2 version
I hope I'm not asking to many stupid questions, but I would like to
understand the process. And since I've spent several hours
yesterday only trying to figure out which template includes what in
STK to write that Form Module page in the wiki, I don't feel very
exited about digging trough the FormModule code for an other few
hours right now... ;-)
no stupid questions, I wasn't clear enough before :-)
-will
On 18.09.2009, at 10:47, Teresa Miyar wrote:
Hi,
On Sep 18, 2009, at 8:53 AM, Will Scheidegger wrote:
Good morning
I did install the full STK and spent a "few" hours trying to
figure out how things work, especially in regard to the contact
form, but also STK. More and more it shows that "powerful" and
"simple" usually don't go together well.
Anyway, I got things working now without the STK. The results of
my adventurous journeys are summed up here:
http://wiki.magnolia-cms.com/display/WIKI/Form+Module
Great page, i've answered the questions there.
The page still contains a bunch of open questions which I hope
will get answered by more knowledgeable people than me, but I
also hope the page will save others some time.
-will
On 17.09.2009, at 17:36, Teresa Miyar wrote:
Hi,
There is a very short description here:
http://documentation.magnolia-cms.com/modules/form.html
And it would help you have a look at the contact page sample
provided in demo-project when you install STK, but if you don't
want to install it you can have a look here http://demo.magnolia-cms.com/demo-project/service/contact.html
On Sep 17, 2009, at 5:21 PM, Jan Haderka wrote:
On Thu, 2009-09-17 at 17:13 +0200, Will Scheidegger wrote:
Hi Teresa
Thanks for the reply.
I'm working on the trunk (Mag 4.1.1) and the error I'm getting
was
described in my original post: empty mails.
Actually I would be quite interested to use the Form Module.
Unfortunately with no documentation at all (incl. JavaDoc) I
don't
Was about to say that there is definitively at least the
javadoc at
http://dev.magnolia-cms.com/modules/magnolia-module-form/1.0.2/magnolia-module-form/
but looking at it now, i see what you mean ...
find it to be "very simple". But maybe you can give me one or
two
pointers to get me started. I'll promise that I will write
down my
experiences in a wiki page in return. Do we have a deal? ;-)
I will try to put you in the right direction in a following email.
Thanks a bunch!
- will
On 17.09.2009, at 16:13, Teresa Miyar wrote:
Hi,
There was an issue with the SimpleMail tag that was fixed for
version 4.1, but as it is deprecated, you can use the Form
Module
without STK is very simple and customizable, but if you don't
want
to change anything maybe you can explain the error you are
getting
and the version you are using, so I can try to find the error.
T.
On Sep 17, 2009, at 2:35 PM, Will Scheidegger wrote:
Dear Magnolians
We are slowly trying to move some of our sites to Magnolia
4. Now
in Magnolia 4 the SimpleMail tag seems to be deprecated. Why
should
I care? Well, the emails sent are empty...
Since the Form Module seems to bee the replacement, I
downloaded
the STK and installed the Form Module. Now, since I would
like to
go step by step: Can I use the Form Module without STK? Or
do you
think it would be simpler to fix the SimpleMail tag?
-will
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]
>
----------------------------------------------------------------
Best regards,
Teresa Miyar
Magnolia International Ltd.
Magnolia® - Simple Open Source Content Management
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]
>
----------------------------------------------------------------
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]
>
----------------------------------------------------------------
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]
>
----------------------------------------------------------------
Best regards,
Teresa Miyar
Magnolia International Ltd.
Magnolia® - Simple Open Source Content Management
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <user-list-unsubscr...@magnolia-
cms.com>
----------------------------------------------------------------
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------
Best regards,
Teresa Miyar
Magnolia International Ltd.
Magnolia® - Simple Open Source Content Management
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------
Best regards,
Teresa Miyar
Magnolia International Ltd.
Magnolia® - Simple Open Source Content Management
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------