[TYPO3-english] Ext: formhandler - problems inserting a form using typoscript
Stefano Cecere
scecere at krur.com
Sun Mar 18 15:22:15 CET 2012
hi Reinhard
is thre any problem today isnerting a formhandler plugin via typoscript
like you wrote here?
i struggled a lot but really could not (the problem seems to make the set
the predef variable
the only way i can make it is to setup a tt_content plugin, set the predef
variable there, and then render with a CONTENT cobject :(
stefano
On Thu, 29 Oct 2009 08:44:55 +0100, Reinhard Führicht <rf at typoheads.at>
wrote:
> Hi Peter,
>
> you can try to call the plugin like this:
>
> plugin.Tx_Formhandler = USER_INT
> plugin.Tx_Formhandler.userFunc = tx_Formhandler_Dispatcher->main
> lib.bottomTS.10 < plugin.Tx_Formhandler.settings.predef.contact
>
> Have a look at the static TypoScript in
> EXT:formhandler/Configuration/Settings/setup.txt.
> There it's done the same way. Maybe this will work.
>
> Cheers,
> Reinhard
>
> Peter Gallagher schrieb:
>> I have a site that I want to put a contact form into the footer of each
>> page. I have created the formhandler template and TS predef setup TS. I
>> have inserted the plugin on a hidden page and then using TS I have
>> added to the footer of all the pages.
>> The problem is that the form doesn't get processed when the user
>> submits the form. In debug mode there are not GET/POST or session vars
>> set.
>> TS setup:
>> plugin.Tx_Formhandler.settings.predef.contact {
>> name = Contact Form
>> debug = 1
>> addErrorAnchors = 0
>> templateFile = fileadmin/templates/miinsters/contact_frm_tmpl.html
>> langFile = fileadmin/templates/miinsters/lang.xml
>> #formValuesPrefix = adoption
>> validators.1.class = Tx_Formhandler_Validator_Default
>> validators.1.config {
>> name {
>> errorCheck.1 = required
>> }
>> email {
>> errorCheck.1 = required
>> errorCheck.2 = email
>> }
>> }
>> #finishers.2.class = Tx_Formhandler_Finisher_Redirect
>> #finishers.2.config.redirectPage = 299
>> finishers.1.class = Tx_Formhandler_Finisher_Mail
>> finishers.1.config {
>> admin {
>> to_email = office at electricretina.com
>> to_name = Miinsters Canada
>> subject = Adoption Registration
>> sender_email = email
>> sender_name = name
>> replyto_email = email
>> replyto_name = name
>> htmlEmailAsAttachment = 1
>> }
>> user {
>> to_email = email
>> to_name = name
>> subject = Your Miinster Adoption Registration
>> sender_email = info at miinsters.com
>> sender_name = Miinsters Canada
>> replyto_email = info at miinsters.com
>> replyto_name = TEXT
>> replyto_name.value = Miinsters Canada
>> htmlEmailAsAttachment = 1
>> }
>> }
>> finishers.2.class = Tx_Formhandler_Confirmation
>> finishers.2.config{
>> returns = 0
>> }
>> }
>> TS to insert on all pages:
>> lib.bottomTS.10 = RECORDS
>> lib.bottomTS.10.tables = tt_content
>> lib.bottomTS.10.source = 463
>> It would seem that this should be possible, but I don't know what else
>> to try in order to get this work.
>> Any Suggestions?
>> Peter Gallagher
--
____ ___ __ _ ______________________
Stefano Cecere
KRUR studio
More information about the TYPO3-english
mailing list