Ticket #13264: moved typoscript to static template
authorivankartolo <ivankartolo@735d13b6-9817-0410-8766-e36946ffe9aa>
Fri, 7 Oct 2011 16:41:16 +0000 (16:41 +0000)
committerivankartolo <ivankartolo@735d13b6-9817-0410-8766-e36946ffe9aa>
Fri, 7 Oct 2011 16:41:16 +0000 (16:41 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Extensions/direct_mail_subscription/trunk@52813 735d13b6-9817-0410-8766-e36946ffe9aa

static/constants.txt [new file with mode: 0644]
static/setup.txt [new file with mode: 0644]

diff --git a/static/constants.txt b/static/constants.txt
new file mode 100644 (file)
index 0000000..94a820b
--- /dev/null
@@ -0,0 +1,26 @@
+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/static/setup.txt b/static/setup.txt
new file mode 100644 (file)
index 0000000..edec145
--- /dev/null
@@ -0,0 +1,92 @@
+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