[TYPO3-dam-devel] DAM 1.1 structure: dam_index integrated

Andreas Balzer andreasbalzer at gmail.com
Sun Dec 30 19:20:48 CET 2007


Hi Peter,
it works for me but I noticed that my EM did take quite a while to load the
dam config page (40 sec). I don't know whether this is related to the
patches applied or whether it was just a bad moment for my computer but I
wanted to let you know..

Anyway. The integration works well, so a +1 from me :)

Greetings,
Andreas

On Dec 30, 2007 6:09 PM, Peter Kühn <peter.kuehn at wmdb.de> wrote:

> Hi folks,
>
> next cornerstone on the way to DAM 1.1 structure: dam_index integrated.
>
> To test the attached sources:
> - update your installation to the latest revision from svn
> - uninstall dam_index if its installed
> - patch dam with the attached patchfile
> - extract the attached rar inside dam (adds dam/mod_index/ and
> dam/modfunc_index/)
> - go to dam in the extension manager and enable add_media_indexing and
> add_media_file_indexing
>
> let me know, if something doesn't work as expected.
>
> cheers
> pekue
>
> Index: ext_conf_template.txt
> ===================================================================
> --- ext_conf_template.txt       (revision 7677)
> +++ ext_conf_template.txt       (working copy)
> @@ -9,4 +9,8 @@
>   # cat=basic/enable; type=boolean; label=htmlArea RTE integration: If set
> and if the htmlArea RTE extension is installed, the DAM media browser will
> be used by the Insert image and insert file link dialog.
>  htmlAreaBrowser = 1
>   # cat=basic/enable; type=boolean; label= Developer/Debug Functions: This
> activates special functions for development and debugging. This should stay
> deactivated for normal usage!
> -devel = 0
> \ No newline at end of file
> +devel = 0
> +  # cat=basic/enable; type=boolean; label=Media>Indexing: Add module
> "Indexing".
> +add_media_indexing = 0
> +  # cat=basic/enable; type=boolean; label=Media>File>Indexing: Add
> submodule function "Indexing" to Media>File.
> +add_media_file_indexing = 1
> \ No newline at end of file
> Index: ext_emconf.php
> ===================================================================
> --- ext_emconf.php      (revision 7735)
> +++ ext_emconf.php      (working copy)
> @@ -17,10 +17,10 @@
>        'shy' => 0,
>        'version' => '1.0.101',
>        'dependencies' => 'cms,static_info_tables',
> -       'conflicts' => 'dam_file',
> +       'conflicts' => 'dam_file,mmforeign,dam_index',
>        'priority' => '',
>        'loadOrder' => '',
> -       'module' =>
> 'mod_main,mod_file,mod_list,mod_cmd,mod_edit,mod_info,mod_tools,mod_treebrowser',
> +       'module' =>
> 'mod_main,mod_file,mod_list,mod_cmd,mod_edit,mod_info,mod_tools,mod_treebrowser,mod_index',
>        'state' => 'stable',
>        'uploadfolder' => 1,
>        'createDirs' => '',
> @@ -42,6 +42,7 @@
>                'conflicts' => array(
>                        'dam_file' => '',
>                        'mmforeign' => '',
> +                       'dam_index' => '',
>                ),
>                'suggests' => array(
>                        'ceflexform' => '',
> Index: ext_tables.php
> ===================================================================
> --- ext_tables.php      (revision 7677)
> +++ ext_tables.php      (working copy)
> @@ -175,14 +175,12 @@
>
>
>  t3lib_extMgm::addModule('txdamM1','tools','',PATH_txdam.'mod_tools/');
>
> -       if(t3lib_extMgm::isLoaded('dam_index')) {
> -               t3lib_extMgm::insertModuleFunction(
> -                       'txdamM1_tools',
> -                       'tx_dam_tools_indexsetup',
> -
> PATH_txdam.'modfunc_tools_indexsetup/class.tx_dam_tools_indexsetup.php',
> -
> 'LLL:EXT:dam/modfunc_tools_indexsetup/locallang.xml:tx_dam_tools_indexsetup.title'
> -               );
> -       }
> +       t3lib_extMgm::insertModuleFunction(
> +               'txdamM1_tools',
> +               'tx_dam_tools_indexsetup',
> +
> PATH_txdam.'modfunc_tools_indexsetup/class.tx_dam_tools_indexsetup.php',
> +
> 'LLL:EXT:dam/modfunc_tools_indexsetup/locallang.xml:tx_dam_tools_indexsetup.title'
> +       );
>
>        t3lib_extMgm::insertModuleFunction(
>                'txdamM1_tools',
> @@ -344,7 +342,28 @@
>
>
>        tx_dam::register_editor ('tx_dam_edit_text',
> 'EXT:dam/mod_edit/class.tx_dam_edit_text.php:&tx_dam_edit_text');
> +
> +       //add indexing:
> +       $tempSetup =  unserialize($_EXTCONF);
>
> +       if ($tempSetup['add_media_file_indexing']) {
> +               t3lib_extMgm::insertModuleFunction(
> +                       'txdamM1_file',
> +                       'tx_dam_index',
> +
> t3lib_extMgm::extPath($_EXTKEY).'modfunc_index/class.tx_dam_index.php',
> +
> 'LLL:EXT:dam/modfunc_index/locallang.xml:tx_dam_index.title'
> +               );
> +       }
> +
> +       if ($tempSetup['add_media_indexing']) {
> +
> t3lib_extMgm::addModule('txdamM1','index','before:tools',t3lib_extMgm::extPath($_EXTKEY).'mod_index/');
> +               t3lib_extMgm::insertModuleFunction(
> +                       'txdamM1_index',
> +                       'tx_dam_index',
> +
> t3lib_extMgm::extPath($_EXTKEY).'modfunc_index/class.tx_dam_index.php',
> +
> 'LLL:EXT:dam/modfunc_index/locallang.xml:tx_dam_index.title'
> +               );
> +       }
>  }
>
>
> @@ -497,4 +516,4 @@
>
>
>
> -?>
> +?>
> \ No newline at end of file
> Index: modfunc_tools_indexsetup/class.tx_dam_tools_indexsetup.php
> ===================================================================
> --- modfunc_tools_indexsetup/class.tx_dam_tools_indexsetup.php  (revision
> 7677)
> +++ modfunc_tools_indexsetup/class.tx_dam_tools_indexsetup.php  (working
> copy)
> @@ -33,7 +33,7 @@
>  *
>  *
>  *
> - *   61: class tx_dam_tools_indexsetup extends tx_damindex_index
> + *   61: class tx_dam_tools_indexsetup extends tx_dam_index
>  *   70:     function modMenu()
>  *   90:     function head()
>  *  109:     function getCurrentFunc()
> @@ -48,7 +48,7 @@
>
>  require_once (PATH_t3lib.'class.t3lib_basicfilefunc.php');
>
>
> -require_once(t3lib_extMgm::extPath('dam_index').'modfunc_index/class.tx_damindex_index.php');
>
> +require_once(t3lib_extMgm::extPath('dam').'modfunc_index/class.tx_dam_index.php');
>
>
>  $LANG->includeLLFile('EXT:dam_index/modfunc_index/locallang.xml');
> @@ -58,7 +58,7 @@
>  *
>  * @author     Rene Fritz <r.fritz at colorcube.de>
>  */
> -class tx_dam_tools_indexsetup extends tx_damindex_index {
> +class tx_dam_tools_indexsetup extends tx_dam_index {
>
>        var $cronUploadsFolder = 'uploads/tx_dam/cron/';
>
> @@ -73,14 +73,14 @@
>                $menu = array();
>
>                $menu = array(
> -                       'tx_damindex_index_func' => array(
> +                       'tx_dam_index_func' => array(
>                                'index' =>
> $LANG->getLL('tx_dam_tools_indexsetup.func_defindex'),
>                                'cron_info' =>
> $LANG->getLL('tx_dam_tools_indexsetup.func_cron_info'),
> -                               'info' =>
> $LANG->getLL('tx_damindex_index.func_info'),
> +                               'info' =>
> $LANG->getLL('tx_dam_index.func_info'),
>                        ),
>                );
>                if (!t3lib_extMgm::isLoaded('dam_cron')) {
> -
> unset($menu['tx_damindex_index_func']['cron_info']);
> +                       unset($menu['tx_dam_index_func']['cron_info']);
>                }
>
>                return $menu;
> @@ -153,7 +153,7 @@
>                                $content.=
> $this->pObj->getPathInfoHeaderBar($this->pObj->pathInfo, FALSE,
> $this->cmdIcons);
>                                $content.= $this->pObj->doc->spacer(10);
>
> -                               $header =
> $LANG->getLL('tx_damindex_index.setup_summary');
> +                               $header =
> $LANG->getLL('tx_dam_index.setup_summary');
>
>                                $stepsBar =
> $this->getStepsBar($step,$lastStep, '' ,'', '',
> $LANG->getLL('tx_dam_tools_indexsetup.finish'));
>                                $content.=
> $this->pObj->doc->section($header,$stepsBar,0,1);
>
> _______________________________________________
> TYPO3-team-dam mailing list
> TYPO3-team-dam at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-team-dam
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.netfielders.de/pipermail/typo3-team-dam/attachments/20071230/6064ea5a/attachment.htm 


More information about the TYPO3-team-dam mailing list