GithubHelp home page GithubHelp logo

Comments (10)

nitsan-technologies avatar nitsan-technologies commented on June 19, 2024

@ 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.

kartolo avatar kartolo commented on June 19, 2024

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.

magesticmojo avatar magesticmojo commented on June 19, 2024

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.

kartolo avatar kartolo commented on June 19, 2024

@mojobsb: the categories are saved in a MM table "sys_dmail_ttaddress_category_mm"

from direct_mail_subscription.

magesticmojo avatar magesticmojo commented on June 19, 2024

@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.

magesticmojo avatar magesticmojo commented on June 19, 2024

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.

kartolo avatar kartolo commented on June 19, 2024

please check my commit (develop branch). I just found out, that there's difference between callUserFunction in ContentObjectRenderer and GeneralUtility.

from direct_mail_subscription.

RonnyGitHub avatar RonnyGitHub commented on June 19, 2024

We had the same problem, and checked the commit. The develop-code worked for us! Thanks a lot.

+1

from direct_mail_subscription.

magesticmojo avatar magesticmojo commented on June 19, 2024

Works fine for me, thank you!

from direct_mail_subscription.

ikkez avatar ikkez commented on June 19, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.