未申报的参数传递给ViewHelper undkonsorten \ powermailpdf \ viewHelpers \ misc \ variablesviewhelper:邮件

发布于 2025-01-24 16:48:50 字数 2995 浏览 4 评论 0原文

在Typo3 9.5中,使用PowerMail带有powermailpdf在提交表单时我会遇到以下错误...

Undeclared arguments passed to ViewHelper Undkonsorten\Powermailpdf\ViewHelpers\Misc\VariablesViewHelper: mail.

看来它在抱怨 mail 我不知道该怎么办。我已经在主TS模板中包括了powermail的静态模板,然后在powermailpdf中,有关powermailpdf的映射部分。我还在powerMail内容元素的接收器的RTE区域中添加了{downloadlink},并在此处输入了接收者的电子邮件和发送者的电子邮件。

我在文档中找到 mail 的唯一位置是 此页面 ,但似乎我不需要这样做,因为我使用powermail

ps:我还将这个问题发布为 powermailpdf的问题

相关软件包

tmw /

plugin.tx_powermailpdf {
    settings {
        enablePowermailPdf = 1
        showDownloadLink = 1
        email.attachFile = 1
        filelink {
            jumpurl = 1
            jumpurl.secure = 1
            jumpurl.secure.mimeTypes = pdf=application/pdf
            icon = 1
            icon_link = 1
        }
        sourceFile = EXT:rapidfyre_estreetdrivingschool/Resources/Public/Forms/Student_Training_Record.pdf
        fieldMap{
            # Note the format is... pdfField = PowermailField
            name = studentsname
            address = address
            city = city
            state = state
            zip = zip
            gender = gender
            home_number = homephone
            alternate_number = alternatephone
            student_cell = studentsphone
            student_email = studentsemail
            parent_name = parentsname
            parent_email = parentsemail
            high_school = highschool
            birth_date = dateofbirth
            permit_number = permitorid
            class = class

            # Hidden fields
            orientation = orientation
        }
    }
}

错误跟踪的第一部分的图像

”

In TYPO3 9.5 using powermail with powermailpdf I'm getting the following error when submitting a form...

Undeclared arguments passed to ViewHelper Undkonsorten\Powermailpdf\ViewHelpers\Misc\VariablesViewHelper: mail.

It appears that it's complaining about mail but I don't know what to do about it. I've included the static templates for powermail followed by powermailpdf in the main TS template and see below for the mapping part of powermailpdf. I also added {downloadLink} in the RTE area for the receiver in the powermail content element and have email addresses entered there as well for the Receiver's Email and Sender's Email.

The only place I found the word mail in the docs was on this page, but it appears I don't need to do that since I'm using a powermail version greater than 3 right?

PS: I also posted this question as an issue for powermailpdf.

Relevant packages

TypoScript I'm using

plugin.tx_powermailpdf {
    settings {
        enablePowermailPdf = 1
        showDownloadLink = 1
        email.attachFile = 1
        filelink {
            jumpurl = 1
            jumpurl.secure = 1
            jumpurl.secure.mimeTypes = pdf=application/pdf
            icon = 1
            icon_link = 1
        }
        sourceFile = EXT:rapidfyre_estreetdrivingschool/Resources/Public/Forms/Student_Training_Record.pdf
        fieldMap{
            # Note the format is... pdfField = PowermailField
            name = studentsname
            address = address
            city = city
            state = state
            zip = zip
            gender = gender
            home_number = homephone
            alternate_number = alternatephone
            student_cell = studentsphone
            student_email = studentsemail
            parent_name = parentsname
            parent_email = parentsemail
            high_school = highschool
            birth_date = dateofbirth
            permit_number = permitorid
            class = class

            # Hidden fields
            orientation = orientation
        }
    }
}

Image of the first part of the error trace

Error trace from powermailpdf after powermail form submission

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

此生挚爱伱 2025-01-31 16:48:50

Ext:PowerMailPDF正在覆盖此ViewHelper( code )。

config.tx_extbase {
    objects {
        In2code\Powermail\ViewHelpers\Misc\VariablesViewHelper.className = Undkonsorten\Powermailpdf\ViewHelpers\Misc\VariablesViewHelper
    }
}

但是这些课程似乎不匹配(在这些版本中):

因此,此VH的呼叫(可能也来自普通PowerMail模板)将击中ViewHelper的不兼容版本。

EXT:powermailpdf is overriding this ViewHelper (Code).

config.tx_extbase {
    objects {
        In2code\Powermail\ViewHelpers\Misc\VariablesViewHelper.className = Undkonsorten\Powermailpdf\ViewHelpers\Misc\VariablesViewHelper
    }
}

But the classes seems not match (in these versions):

So, a call of this VH (possibly also from the normal Powermail templates) will hit a non-compatible version of the ViewHelper.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文