<?php
  include_once '../doc-typo3-funcs.php';
  $doxygen_vars = array(	"title" => "TYPO3 4.0.1: typo3_src-4.0.1/typo3/sysext/indexed_search/ext_tables.php Source File",
				"datetime" => "Sat Dec 2 19:22:23 2006",
				"date" => "2 Dec 2006",
				"doxygenversion" => "1.4.6",
				"projectname" => "TYPO3 4.0.1",
				"projectnumber" => "4.0.1"
			);
  get_header($doxygen_vars);
?>
<!-- Generated by Doxygen 1.4.6 -->
<div class="tabs">
  <ul>
    <li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
    <li><a href="namespaces.html"><span>Namespaces</span></a></li>
    <li><a href="classes.html"><span>Classes</span></a></li>
    <li id="current"><a href="files.html"><span>Files</span></a></li>
    <li><a href="dirs.html"><span>Directories</span></a></li>
    <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
    <li><a href="examples.html"><span>Examples</span></a></li>
    <li>
      <form action="search.php" method="get">
        <table cellspacing="0" cellpadding="0" border="0">
          <tr>
            <td><label>&nbsp;<u>S</u>earch&nbsp;for&nbsp;</label></td>
            <td><input type="text" name="query" value="" size="20" accesskey="s"/></td>
          </tr>
        </table>
      </form>
    </li>
  </ul></div>
<div class="nav">
<a class="el" href="dir_c8daf1ad746050abf985cc546c89e248.html">typo3_src-4.0.1</a>&nbsp;&raquo&nbsp;<a class="el" href="dir_18071ae4545d8b3e0364d30c0659c74a.html">typo3</a>&nbsp;&raquo&nbsp;<a class="el" href="dir_57bf1ed8249c1fd5b014486d01bcb27a.html">sysext</a>&nbsp;&raquo&nbsp;<a class="el" href="dir_1144f7dd65e866e7cd4aa66020137172.html">indexed_search</a></div>
<h1>ext_tables.php</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 &lt;?php
<a name="l00002"></a>00002 <span class="keywordflow">if</span> (!defined ('TYPO3_MODE'))    die ('Access denied.');
<a name="l00003"></a>00003 
<a name="l00004"></a>00004 <a class="code" href="classt3lib__extMgm.html#81e722661f38010478a5d18f662fbb83">t3lib_extMgm::addPlugin</a>(Array('LLL:EXT:indexed_search/locallang.php:mod_indexed_search', $_EXTKEY));
<a name="l00005"></a>00005 
<a name="l00006"></a>00006 <a class="code" href="classt3lib__div.html#3a04dbb9a707317b8beccbe92559dcc8">t3lib_div::loadTCA</a>('tt_content');
<a name="l00007"></a>00007 $TCA['tt_content']['types']['list']['subtypes_excludelist'][$_EXTKEY] = 'layout,select_key,pages';
<a name="l00008"></a>00008 
<a name="l00009"></a>00009 <span class="keywordflow">if</span> (TYPO3_MODE=='BE')    {
<a name="l00010"></a>00010         <a class="code" href="classt3lib__extMgm.html#f7260895ead36979749c5421910e8d7e">t3lib_extMgm::addModule</a>('tools<span class="charliteral">','</span>isearch<span class="charliteral">','</span>after:log',<a class="code" href="classt3lib__extMgm.html#f395b211d97293002bbf92c3802392f5">t3lib_extMgm::extPath</a>($_EXTKEY).'mod/');
<a name="l00011"></a>00011 
<a name="l00012"></a>00012         <a class="code" href="classt3lib__extMgm.html#e8aedd5cafe88f2c1a6c684e8360c5d5">t3lib_extMgm::insertModuleFunction</a>(
<a name="l00013"></a>00013                 'web_info',
<a name="l00014"></a>00014                 '<a class="code" href="classtx__indexedsearch__modfunc1.html">tx_indexedsearch_modfunc1</a>',
<a name="l00015"></a>00015                 <a class="code" href="classt3lib__extMgm.html#f395b211d97293002bbf92c3802392f5">t3lib_extMgm::extPath</a>($_EXTKEY).'modfunc1/<span class="keyword">class</span>.<a class="code" href="classtx__indexedsearch__modfunc1.html">tx_indexedsearch_modfunc1</a>.php',
<a name="l00016"></a>00016                 'LLL:EXT:indexed_search/locallang.php:mod_indexed_search'
<a name="l00017"></a>00017         );
<a name="l00018"></a>00018         <a class="code" href="classt3lib__extMgm.html#e8aedd5cafe88f2c1a6c684e8360c5d5">t3lib_extMgm::insertModuleFunction</a>(
<a name="l00019"></a>00019                 <span class="stringliteral">"web_info"</span>,
<a name="l00020"></a>00020                 <span class="stringliteral">"tx_indexedsearch_modfunc2"</span>,
<a name="l00021"></a>00021                 <a class="code" href="classt3lib__extMgm.html#f395b211d97293002bbf92c3802392f5">t3lib_extMgm::extPath</a>($_EXTKEY).<span class="stringliteral">"modfunc2/class.tx_indexedsearch_modfunc2.php"</span>,
<a name="l00022"></a>00022                 <span class="stringliteral">"LLL:EXT:indexed_search/locallang.php:mod2_indexed_search"</span>
<a name="l00023"></a>00023         );
<a name="l00024"></a>00024 }
<a name="l00025"></a>00025 
<a name="l00026"></a>00026 <a class="code" href="classt3lib__extMgm.html#b12747ac9d2de0474ad1cf05f7392227">t3lib_extMgm::allowTableOnStandardPages</a>('index_config');
<a name="l00027"></a>00027 <a class="code" href="classt3lib__extMgm.html#1c163782a4f6e7c6110aa4002c4a79a0">t3lib_extMgm::addLLrefForTCAdescr</a>('index_config<span class="charliteral">','</span>EXT:indexed_search/locallang_csh_indexcfg.xml');
<a name="l00028"></a>00028 
<a name="l00029"></a>00029 <span class="keywordflow">if</span> (<a class="code" href="classt3lib__extMgm.html#297116a3b1e17045ff193f170b8c4a29">t3lib_extMgm::isLoaded</a>('crawler'))  {
<a name="l00030"></a>00030         $TCA['index_config'] = Array (
<a name="l00031"></a>00031                 'ctrl' =&gt; Array (
<a name="l00032"></a>00032                         'title' =&gt; 'LLL:EXT:indexed_search/locallang_db.php:index_config',
<a name="l00033"></a>00033                         'label' =&gt; 'title',
<a name="l00034"></a>00034                         'tstamp' =&gt; 'tstamp',
<a name="l00035"></a>00035                         'crdate' =&gt; 'crdate',
<a name="l00036"></a>00036                         'cruser_id' =&gt; 'cruser_id',
<a name="l00037"></a>00037                         'type' =&gt; 'type',
<a name="l00038"></a>00038                         'default_sortby' =&gt; 'ORDER BY crdate',
<a name="l00039"></a>00039                         'enablecolumns' =&gt; Array (
<a name="l00040"></a>00040                                 'disabled' =&gt; 'hidden',
<a name="l00041"></a>00041                                 'starttime' =&gt; 'starttime',
<a name="l00042"></a>00042                         ),
<a name="l00043"></a>00043                         'dynamicConfigFile' =&gt; <a class="code" href="classt3lib__extMgm.html#f395b211d97293002bbf92c3802392f5">t3lib_extMgm::extPath</a>($_EXTKEY).'tca.php',
<a name="l00044"></a>00044                         'iconfile' =&gt; '<span class="keywordflow">default</span>.gif',
<a name="l00045"></a>00045                 ),
<a name="l00046"></a>00046                 'feInterface' =&gt; Array (
<a name="l00047"></a>00047                         'fe_admin_fieldList' =&gt; 'hidden, starttime, title, description, type, depth, table2index, alternative_source_pid, get_params, chashcalc, filepath, extensions',
<a name="l00048"></a>00048                 )
<a name="l00049"></a>00049         );
<a name="l00050"></a>00050 }
<a name="l00051"></a>00051 
<a name="l00052"></a>00052 
<a name="l00053"></a>00053         <span class="comment">// Example of crawlerhook (see also ext_localconf.php!)</span>
<a name="l00054"></a>00054 <span class="comment">/*</span>
<a name="l00055"></a>00055 <span class="comment">        t3lib_div::loadTCA('index_config');</span>
<a name="l00056"></a>00056 <span class="comment">        $TCA['index_config']['columns']['type']['config']['items'][] =  Array('My Crawler hook!', 'tx_myext_example1');</span>
<a name="l00057"></a>00057 <span class="comment">        $TCA['index_config']['types']['tx_myext_example1'] = $TCA['index_config']['types']['0'];</span>
<a name="l00058"></a>00058 <span class="comment">*/</span>
<a name="l00059"></a>00059 ?&gt;
</pre></div><?php
  include_once '../doc-typo3-funcs.php';
  get_footer();
?>