Ticket #13264: moved typoscript to static template
authorivankartolo <ivankartolo@735d13b6-9817-0410-8766-e36946ffe9aa>
Thu, 6 Oct 2011 22:31:28 +0000 (22:31 +0000)
committerivankartolo <ivankartolo@735d13b6-9817-0410-8766-e36946ffe9aa>
Thu, 6 Oct 2011 22:31:28 +0000 (22:31 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Extensions/direct_mail_subscription/trunk@52790 735d13b6-9817-0410-8766-e36946ffe9aa

ChangeLog
README.txt
ext_tables.php
ext_typoscript_constants.txt [deleted file]
ext_typoscript_setup.txt [deleted file]
pi/fe_admin_dmailsubscrip.tmpl

index 8fa22ea..7cc8a6f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
 2011-20-06 Ivan Kartolo <ivan.kartolo@dkd.de>
-       # #29676: fixes unreplaced marker
+       * #29676: fixes unreplaced marker
+       * #13264: moved typoscript to static template
        
 2011-03-01 Ivan Kartolo <ivan.kartolo@dkd.de>
        * #12968: added captcha to infomail form.
index 0ebf276..6e40ce1 100644 (file)
@@ -1,4 +1,5 @@
 Upon upgrading, please notes these changes:
+       - TypoScript is moved to static template. Please include this manually
        - fe_adminLib.inc is now local. please check the path to this script in your TypoScript.
        - new subpart in template ###TEMPLATE_INFOMAIL_NORECORD###
        - added support for captcha. Please check the standard TypoScript in ext_typoscript_setup.txt
index ea95330..324ee48 100644 (file)
@@ -19,6 +19,7 @@ t3lib_div::loadTCA("tt_address");
 t3lib_extMgm::addTCAcolumns("tt_address",$tempColumns,1);
 t3lib_extMgm::addToAllTCAtypes("tt_address","tx_directmailsubscription_localgender", '', 'after:gender');
 
+t3lib_extMgm::addStaticFile($_EXTKEY, 'static/','Direct Mail subscription');
 
 t3lib_extMgm::addPlugin(Array("LLL:EXT:direct_mail_subscription/locallang.php:pi_dmail_subscr", "21"));
 ?>
\ No newline at end of file
diff --git a/ext_typoscript_constants.txt b/ext_typoscript_constants.txt
deleted file mode 100644 (file)
index 94a820b..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-plugin.feadmin.dmailsubscription {
-    # cat=plugin.feadmin.dmailsubscription/file; type=file[html,htm,tmpl,txt]; label= Template File: HTML-template file
-  file.templateFile = EXT:direct_mail_subscription/pi/fe_admin_dmailsubscrip.tmpl
-
-    # cat=plugin.feadmin.dmailsubscription//; type=string; label= Administration email: Enter the administration email address here. This email address will be the sender email and also recieve administration notes.
-  email = 
-    # cat=plugin.feadmin.dmailsubscription//; type=string; label= Administration name: Enter the administration name here. If set, this will be used as the email address name in the mails sent.
-  emailName = 
-
-    # cat=plugin.feadmin.dmailsubscription//; type=int+; label= Record PID: If the records edited/created is located in another page than the current, enter the PID of that page here.
-  pid = 
-
-
-    # cat=plugin.feadmin.dmailsubscription/typo; type=wrap; label= Wrap 1: This wrap is used in the template-file.
-  wrap1 = <font face="verdana" size=2 color=black> | </font>
-    # cat=plugin.feadmin.dmailsubscription/typo; type=wrap; label= Wrap 2: This wrap is used in the template-file.
-  wrap2 = <font face="verdana" size=1 color=black> | </font>
-
-    # cat=plugin.feadmin.dmailsubscription/color; type=color; label= Color 1: This bgcolor is used in the template-file.
-  color1 = #cccccc
-    # cat=plugin.feadmin.dmailsubscription/color; type=color; label= Color 2: This bgcolor is used in the template-file.
-  color2 = #999999
-    # cat=plugin.feadmin.dmailsubscription/color; type=color; label= Color 3: This bgcolor is used in the template-file.
-  color3 = #333333
-
-}
\ No newline at end of file
diff --git a/ext_typoscript_setup.txt b/ext_typoscript_setup.txt
deleted file mode 100644 (file)
index edec145..0000000
+++ /dev/null
@@ -1,92 +0,0 @@
-includeLibs.directmailsubscribe = EXT:direct_mail_subscription/pi/class.dmailsubscribe.php 
-plugin.feadmin.dmailsubscription >
-plugin.feadmin.dmailsubscription = USER_INT
-plugin.feadmin.dmailsubscription {
-       userFunc = user_feAdmin->init
-       includeLibs = EXT:direct_mail_subscription/fe_adminLib.inc
-
-       templateFile ={$plugin.feadmin.dmailsubscription.file.templateFile}
-
-       cObjects {
-               CATLIST = USER
-               CATLIST.userFunc = user_dmailsubscribe->makeCheckboxes
-               CATLIST {
-                       templateFile = {$plugin.feadmin.dmailsubscription.file.templateFile}
-                       pid = {$plugin.feadmin.dmailsubscription.pid}
-                       hideNonTranslatedCategories = 0
-               }
-       }
-
-       # Global wraps
-       wrap1.wrap = {$plugin.feadmin.dmailsubscription.wrap1}
-       wrap2.wrap = {$plugin.feadmin.dmailsubscription.wrap2}
-       color1.wrap = {$plugin.feadmin.dmailsubscription.color1}
-       color2.wrap = {$plugin.feadmin.dmailsubscription.color2}
-       color3.wrap = {$plugin.feadmin.dmailsubscription.color3}
-
-       // Tables + Commands
-       table = tt_address
-
-       // Info-mail setup
-       setfixed = 1
-       setfixed {
-               approve {
-                       _FIELDLIST = uid
-                       hidden = 0
-               }
-               DELETE = 1
-               DELETE._FIELDLIST = uid
-       }
-
-       delete = 1
-       
-       defaultCmd=create
-
-       // Info-mail setup
-       infomail = 1
-       infomail.default {
-               label = FORGOTPASSWORD
-       }
-
-       // Edit setup
-       edit = 1
-       edit {
-               fields = gender, name, email, module_sys_dmail_category, module_sys_dmail_html
-               required = gender, name, email
-               evalValues.email = uniqueLocal, email
-               userFunc_afterSave = user_dmailsubscribe->saveRecord            
-       }
-
-       // Create setup
-       create = 1
-       create {
-               userFunc_afterSave = user_dmailsubscribe->saveRecord
-               preview = 0
-               fields = gender, name, hidden, email, module_sys_dmail_category, module_sys_dmail_html, captcha
-               required = gender, name, email, captcha
-               noSpecialLoginForm = 1
-               # Initially hide the user until he approves!
-               overrideValues.hidden = 1
-               evalValues.email = uniqueLocal, email
-       }
-
-       authcodeFields = uid
-       authcodeFields.addKey = 
-       authcodeFields.addDate = 
-
-       evalErrors.email.uniqueLocal = Apparently you're already registered with this email address!
-       evalErrors.email.email = This is not a proper email address!
-       evalErrors.captcha.captcha = Captcha code is not correct.
-
-       parseValues.module_sys_dmail_category = checkArray,setEmptyIfAbsent 
-       parseValues.module_sys_dmail_html = setEmptyIfAbsent 
-       
-       pid = {$plugin.feadmin.dmailsubscription.pid}
-       //always search recursively
-       pidRecursive = 1
-
-       email.from = {$plugin.feadmin.dmailsubscription.email}
-       email.fromName = {$plugin.feadmin.dmailsubscription.emailName}
-       email.admin = {$plugin.feadmin.dmailsubscription.email}
-       email.field = email
-}
\ No newline at end of file
index bad63ea..a62bf2a 100644 (file)
@@ -593,7 +593,7 @@ You can use the newly created record as markers on the format ###FIELD_[fieldnam
 <!--###SUB_RECORD###-->
 TYPO3 Direct Mailer
 
-Dear ###FIELD_name###
+Dear ###FIELD_tx_directmailsubscription_localgender### ###FIELD_name###
 
 You're now subscribed to a TYPO3 Testsite newsletter.