[TYPO3-project-formidable] Userobj for template subpart in Mail Actionlet
Jérémy Lecour
jeremy.lecour at gmail.com
Tue Jun 19 10:47:39 CEST 2007
Hi,
I've modified the Mail actionlet in order to have a possible "userobj" to
determine the form subpart.
Here is a patch (inline and attached)
It's basic, apparently working,and fitting my needs. Don't hesitate to
enhance or correct if needed.
--- class.tx_actmail.save.php 2007-06-19 10:44:23.000000000 +0200
+++ class.tx_actmail.php 2007-06-19 10:44:17.000000000 +0200
@@ -90,7 +90,10 @@
else
{ $template_path =
t3lib_div::getFileAbsFileName($this->oForm->_navConf("/template/path/",
$aConf));}
- $form_subpart = $this->oForm->_navConf("/template/subparts/form/",
$aConf);
+ if($this->oForm->_navConf("/template/subparts/form/userobj/", $aConf) !==
FALSE)
+ { $form_subpart =
$this->oForm->_callUserObj($this->oForm->_navConf("/template/subparts/form/",
$aConf));}
+ else
+ { $form_subpart = $this->oForm->_navConf("/template/subparts/form/",
$aConf);}
$sMail = $this->_parseTemplate($template_path, $form_subpart,
$aHRData["labels"], $aHRData["values"]);
}
--
Jérémy Lecour : <mailto:jeremy.lecour at gmail.com>
webdesigner, webmaster et développeur web
Provence Linux User Group : http://www.plugfr.org/
More information about the TYPO3-project-formidable
mailing list