[TYPO3-dam] dam category selector in flexform

Michiel Roos [netcreators] michiel at netcreators.com
Fri Dec 19 11:06:45 CET 2008


Steffen Gebert schreef:
> Jigal van Hemert wrote:
>> Is there an "easy" way to put a dam category selector (preferrably with
>> category tree and possibility to select multiple categories) in the
>> flexform of my own extension?
> 
> I'd like to know this, too. If s/b could explain how to do this (or post a link where it is explained) this could be mentioned in documentation. I'm quite sure, this would help extension authors willing support DAM  -but without easy explanations this might be hard for them/us/me.
> 
> I think dam_demo can't help and is outdated..
> 
> Thanks
> Steffen
> 
Hi all,

Look into one of the many dam extensions to see how they do it. One
example is: damd_gallery

Goes something like this:

      <wich_dam_cat>
         <TCEforms>
          <exclude>1</exclude>

<label>LLL:EXT:damd_gallery/locallang_tca.xml:damd_gallery.pi_flexform.wich_dam_cat</label>
          <config>
             <type>select</type>
             <form_type>user</form_type>

<userFunc><![CDATA[EXT:dam/lib/class.tx_dam_tcefunc.php:&tx_dam_tceFunc->getSingleField_selectTree]]></userFunc>
             <treeViewBrowseable>0</treeViewBrowseable>

<treeViewClass><![CDATA[EXT:dam/components/class.tx_dam_selectionCategory.php:&tx_dam_selectionCategory]]></treeV+iewClass>
             <foreign_table>tx_dam_cat</foreign_table>
             <size>1</size>
             <autoSizeMax>30</autoSizeMax>
             <minitems>0</minitems>
             <maxitems>2</maxitems>
             <default> </default>
          </config>
        </TCEforms>
      </wich_dam_cat>


Warm regards,


Michiel Roos

-- 
Netcreators BV :: creation and innovation
www.netcreators.com

Interesse in werken bij Netcreators?
http://www.netcreators.com/bedrijf/vacatures/


More information about the TYPO3-project-dam mailing list