2012-09-19 56 views
1

有沒有人在擴展開發中爲後端模塊使用傳統的browser.php和browser_links.php有任何經驗?我想集成文件瀏覽,但似乎無法將其連接到我的擴展。任何想法或其他建議?typo3中的文件瀏覽

回答

0

也許你在尋找Flexforms 與ff你可以添加字段到擴展名和配置他們與XML。我的filebroswer配置爲:

... 
<template> 
    <TCEforms> 
    <exclude>1</exclude> 
    <label>template</label> 
    <config> 
     <type>input</type> 
     <size>50</size> 
     <eval>trim</eval> 
     <wizards type="array"> 
     <_PADDING>2</_PADDING> 
     <link type="array"> 
      <type>popup</type> 
      <title>Link</title> 
      <icon>link_popup.gif</icon> 
      <script>browse_links.php?mode=wizard&amp;act=file</script> 
      <params type="array"> 
      <blindLinkOptions>page,spec</blindLinkOptions> 
      </params> 
      <JSopenParams>height=300,width=500,status=0,menubar=0,scrollbars=1</JSopenParams> 
     </link> 
     </wizards> 
    </config> 
    </TCEforms> 
</template> 
... 
0

TCA:

'field_name' => array(
    'exclude' => 0, 
    'label' => 'LLL:EXT:peproducts/Resources/Private/Language/locallang_db.xml:tx_peproducts_domain_model_product.price', 
    'config' => array(
    'type' => 'input', 
    'size' => 30, 
    'eval' => 'trim', 
    'wizards' => array(
     '_PADDING' => 2, 
     'link' => array(
     'type' => 'popup', 
     'title' => 'Link', 
     'icon' => 'link_popup.gif', 
     'script' => 'browse_links.php?mode=wizard', 
     'JSopenParams' => 'height=300,width=500,status=0,menubar=0,scrollbars=1' 
     ) 
    ), 
    'softref' => 'typolink[linkList]' 
    ), 
),