Powermail输入字段中的典型USER/USER_INT对象 [英] Typoscript USER / USER_INT objects in powermail input fields

查看:89
本文介绍了Powermail输入字段中的典型USER/USER_INT对象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个自定义扩展名,用于从数据库呈现值.我想使用powermail预填充打字稿来预填充扩展名的返回值.

I've a custom extension to render a value from database. I want to prefill the returned value of the extension using powermail prefill typoscript.

但是当我将插件添加为用户功能时,它将在前端显示奇怪的输出.

But when I add the plugin as userfunction, then it will display strange output in frontend.

请参阅下面的我的打字代码;

See my typoscript code below;

lib.companyname = USER_INT
lib.companyname {
        userFunc = tx_extbase_core_bootstrap->run     
        extensionName = ExtPowermail
        pluginName = Extpowermail
        vendorName = TYPO3
        controller = Extpowermail 
        action = list  
    } 

plugin.tx_powermail.settings.setup {
  prefill {
    company < lib.companyname
  }
}

此处"company"是powermail中的输入类型文本字段.在前端,上述代码的输出呈现如下;

Here "company" is an input type text field in powermail. In frontend the output of the above code render like this;

<!--INT_SCRIPT.ad09b2f270243798e007be81eba0871c-->

我已将USER_INT更改为USER,并且输出未更改. 如果有人知道解决方案,请提供帮助.

I've changed USER_INT to USER and there is no change in the output. If anybody knows the solution, please help.

推荐答案

我自己刚开始使用Typo3,但我也需要该功能.我遇到了同样的问题,当我使用它时它开始为我工作:

I'm just starting out with Typo3 myself, but I needed that functionality also. I had the same problem, it started working for me when I used this:

plugin.tx_powermail.settings.setup.prefill {
   company = USER
   company {
       userFunc = tx_extbase_core_bootstrap->run     
       extensionName = ExtPowermail
       pluginName = Extpowermail
       vendorName = TYPO3
       switchableControllerActions.Extpowermail.1 = list
       }
  }

据我所知,您得到的输出是对缓存的一些引用.当使用switchableControllerActions时,似乎会停止缓存内容,因此您将获得常规输出.

The output you are getting is some reference to the cache, as far as I know. When using switchableControllerActions it seems to stop caching the content, so you get the regular output.

这篇关于Powermail输入字段中的典型USER/USER_INT对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆