Image 基于像素的插件(流体)-TYPO3 6.2的图像问题

Image 基于像素的插件(流体)-TYPO3 6.2的图像问题,image,plugins,typo3,typo3-6.2.x,pibase,Image,Plugins,Typo3,Typo3 6.2.x,Pibase,在更新的TYPO3 v6.2.7安装中,我仍然使用基于Pibase的插件。 从6.2开始,我的小型前端插件出现了一些问题 我的插件只显示标题、链接和图片。如果后端没有选择图像,我的插件不会在前端显示HTML输出: <f:if condition="{imgTeaser}"> <f:image src="{imgTeaser}" alt="" /> </f:if> 及 09-12-1410:56:

在更新的TYPO3 v6.2.7安装中,我仍然使用基于Pibase的插件。 从6.2开始,我的小型前端插件出现了一些问题

我的插件只显示标题、链接和图片。如果后端没有选择图像,我的插件不会在前端显示HTML输出:

<f:if condition="{imgTeaser}">
  <f:image src="{imgTeaser}" alt="" />
</f:if>

09-12-1410:56:

|TYPO3\CMS\Core\Utility\GeneralUtility::loadTCA()-从6.1开始,将在两个版本之后删除-需要(TYPO3/sysext/CMS/tslib/index_ts.php),index.php#28//TYPO3\CMS\Core\Core\Bootstrap->loadExtensionTables#123//TYPO3\CMS\Core\Utility\ExtensionManagementUtility::loadExtTables#925//TYPO3\CMS\Core\Cache\Frontend\PhpFrontend->requirence#1729//TYPO3\CMS\Core\Cache\Backend\simplebackend\simplebackend->requirence#requirence#72//(typo3temp/Cache/Code/Cache_core/ext_tables_8daea175f15209031d107ba834640863df1679e.php),typo3/sysext/core/Classes/Cache/Backend/SimpleFileBackend.php#364//typo3\CMS\core\Utility\generalubility::loadTCA#3183//typo3\CMS\core\Utility\Utility\generalubility::logDeprecatedFunction函数4167(typo3/sysext/core/Classes/Utility/generalubility.php)|

我使用flexform将图像从插件上传到/uploads文件夹,如下所示:

<image>
    <TCEforms>
        <label>LLL:EXT:my_modules/pi3/locallang_flex.xml:label.imgTeaser</label>
        <config>
            <type>group</type>
            <internal_type>file</internal_type>
            <allowed>jpg,png,gif</allowed>
            <max_size>500000</max_size>
            <uploadfolder>uploads/tx_mymodules/</uploadfolder>
            <size>1</size>
            <maxitems>1</maxitems>
            <minitems>0</minitems>
            <show_thumbs>1</show_thumbs>
        </config>
    </TCEforms>
</image>

我的流体模板错了,但我不知道为什么

是:

改为:

public function main($content, array $conf) {
  ...
  $image = $this->pi_getFFvalue($this->cObj->data['pi_flexform'], 'image', 'basicsheet');
  ...
}

现在它工作了!也许有人可以解释一下…Thx

在这两种情况下,
{imgTeaser}
的值是什么?有图像和没有图像?哦,我很抱歉:f:debug{imgTeaser}:“uploads/tx_mymodules/thema_logo_220.png”这两种情况。我总是这样使用它。检查一下{imgTeaser}==TRUE(里面是否有任何内容),然后显示我只是做了这样一个条件:
uploads/tx_mymodules/thema_logo_220.png
即使没有加载文件?你有什么问题吗?Hi biesior。谢谢你的评论,文件在服务器上我的插件昨天工作得很好,但现在有了6.2.8我有这个错误。也许问题出在我的flexform上?!我不知道。
class tx_mymodules_pi3 extends tslib_pibase {
  ...
  var $imagePath = 'uploads/tx_mymodules/';
  ...
  public function main($content, array $conf) {
    $image = $this-> imagePath . $this->pi_getFFvalue($this->cObj->data['pi_flexform'], 'image', 'basicsheet');
  ...
    $this->view->assign('imgTeaser', $image);
  ...
    return ($content);
  }
}
<f:if condition="{imgTeaser}">
  <f:image src="{imgTeaser}" alt="" />
</f:if>
<f:if condition="{imgTeaser}">
  <f:image src="uploads/tx_mymodules/{imgTeaser}" alt="" />
</f:if>
var $imagePath = 'uploads/tx_mymodules/';

public function main($content, array $conf) {
  ...
  $image = $this-> imagePath . $this->pi_getFFvalue($this->cObj->data['pi_flexform'], 'image', 'basicsheet');
  ...
}
public function main($content, array $conf) {
  ...
  $image = $this->pi_getFFvalue($this->cObj->data['pi_flexform'], 'image', 'basicsheet');
  ...
}