[TYPO3] lost in setfixed links...
Grégory Duchesnes
g.duchesnes at free.fr
Sun Sep 7 18:47:13 CEST 2008
hi all,
I'm trying to use setfixed links in a custom extension. I've read the
API, searched examples in extensions such as dmailsubscription,
sr_feuser_register and t3consultancies but i'm still completely lost :(
Anyone could point me to a document explaining how to use this feature?
What i need to do is pretty simple :
on creation of a record in the database, i need the send a mail to a
user which contains a setfixed link to change a field (this is exactly
the same behaviour as a newsletter confirmation link but i need extra
fields in the mail)
i tried this :
Typoscript :
plugin.tx_contest_pi1 = USER_INT
plugin.tx_contest_pi1.fe_adminLib = USER_INT
plugin.tx_contest_pi1.fe_adminLib {
userFunc = user_feAdmin->init
includeLibs = media/scripts/fe_adminLib.inc
table = tx_contest_hit
defaultCmd=create
setfixed=1
setfixed.approve {
_FIELDLIST = uid
is_visit = 1
}
// Creating
create = 1
create.fields = is_visit,user
create.overrideValues {
is_visit = 0
}
create.userFunc_afterSave = tx_contest_pi1->afterSave
authcodeFields = uid
debug = 1
}
and in plugin :
$this->conf["fe_adminLib."]["templateContent"] = '<!--
###EMAIL_TEMPLATE_CREATE_SAVED### begin -->
<!--###SUB_RECORD###-->
http://www.mydomain.org/mypage/?1=1###SYS_SETFIXED_approve###
<!--###SUB_RECORD###-->
<!-- ###EMAIL_TEMPLATE_CREATE_SAVED### end-->';
$body = $this->cObj->cObjGetSingle($this->conf["fe_adminLib"],$this-
>conf["fe_adminLib."]);
but no substitution of ###SYS_SETFIXED_approve### occurs :(
please help,
Duch
More information about the TYPO3-english
mailing list