Comments (10)
@ Cedricziel: Here is the solution as below:
# Ext: direct_mail_subscription
# System Environment:
TYPO3: 7.6
Extension: 2.0.3
# Problem:
Category not listing using cObject CATLIST (setup.txt)
# Solution:
In latest version of direct_mail_subscription, Category listing in displayed in FE which is render through plugin.feadmin.dmailsubscription.cObject. To display category in Frontend one need to change as following
cObjects {
CATLIST = USER
CATLIST.userFunc = user_dmailsubscribe->makeCheckboxes
CATLIST {
templateFile = {$plugin.feadmin.dmailsubscription.file.templateFile}
pid = {$plugin.feadmin.dmailsubscription.pid}
hideNonTranslatedCategories = 0
}
}
Replace with
cObjects {
CATLIST = USER_INT
CATLIST.includeLibs = EXT:direct_mail_subscription/pi/class.dmailsubscribe.php
CATLIST.userFunc = user_dmailsubscribe->makeCheckboxes
CATLIST {
templateFile = {$plugin.feadmin.dmailsubscription.file.templateFile}
pid = {$plugin.feadmin.dmailsubscription.pid}
hideNonTranslatedCategories = 0
}
}
from direct_mail_subscription.
the static TS is corrected. Is the saving problem still exist? on my dev server the chosen categories are saved without problem. It's a plain 7.6 installation
from direct_mail_subscription.
I still have the saving problem: TYPO3 7.6 and the latest extension-code from master:
The checkboxes are now rendered (thanks for the fix) but the selected categories are not saved in the tt_address-table. Any advice?
from direct_mail_subscription.
@mojobsb: the categories are saved in a MM table "sys_dmail_ttaddress_category_mm"
from direct_mail_subscription.
@kartolo: Sorry, I was unclear: A value (count?) gets saved in tt_address.module_sys_dmail_category but no entries in sys_dmail_ttaddress_category_mm. The BE shows the categories but they are never selected. Any idea how to fix this?
Thanks a lot!
TYPO3: 7.6
tt_address: 3.0.3
direct_mail: 5.1.0
direct_mail_subscription: 2.0.3
from direct_mail_subscription.
It seems user_dmailsubscribe->saveRecord() never gets called after saving a new subscriber.
An ugly workaround is to change user_feAdmin->userProcess_alt() to:
public function userProcess_alt($confVal, $confArr, $passVar)
{
if ($confVal) {
$funcConf = $confArr;
$funcConf['parentObj'] = $this;
// $passVar = $GLOBALS['TSFE']->cObj->callUserFunction($confVal, $funcConf, $passVar);
require_once('pi/class.dmailsubscribe.php');
$user_dmailsubscribe = new user_dmailsubscribe();
$passVar = $user_dmailsubscribe->saveRecord($passVar);
}
return $passVar;
}
@kartolo: Could you please investigate this and fix this in the next version? Thanks!
from direct_mail_subscription.
please check my commit (develop branch). I just found out, that there's difference between callUserFunction in ContentObjectRenderer and GeneralUtility.
from direct_mail_subscription.
We had the same problem, and checked the commit. The develop-code worked for us! Thanks a lot.
+1
from direct_mail_subscription.
Works fine for me, thank you!
from direct_mail_subscription.
why is this fix not closed and not included in the TER version? Please add it to 2.0.4, otherwise it drives people crazy. thanks.
from direct_mail_subscription.
Related Issues (19)
- Add composer.json HOT 1
- Wrong tstamp formatting HOT 1
- Unable to add new subscribers HOT 1
- Move to Version 2.0.4 HOT 1
- Correct for overrideValues.hidden = 1 HOT 1
- Error: Could not scan for classes inside "/var/www/html/typo3conf/ext/direct_mail_subscription/Classes/" HOT 2
- Typo3.org Version 2.0.3 has Error in /direct_mail_subscription/Configuration/TCA/Overrides/tt_address.php HOT 1
- PHP7 warning
- FeatureRequest: Make durability of Confirmation-Links configurable
- TYPO3 v8 LTS (8.7) compatibility HOT 15
- Multiple confirmation mails sent
- ErrorRealUrl configration
- Usage of JavaScript method updateForm() which doesn't exist in TYPO3 7.6 HOT 1
- Typo3 v9 compatibility HOT 7
- PHP parse error with version 2.0.3 and PHP 5.4
- Missing argument in getParsedData() HOT 1
- TYPO3 Exception with dmail_subscription TS Template HOT 1
- Empty records with tt_address 3.1.1 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from direct_mail_subscription.