RealUrl example configuration added to "doc" folder; non filled markers (###TITLE...
authorjocrau <jocrau@735d13b6-9817-0410-8766-e36946ffe9aa>
Mon, 1 Sep 2008 15:36:07 +0000 (15:36 +0000)
committerBastian Bringenberg <spam@bastian-bringenberg.de>
Thu, 4 Dec 2014 23:56:05 +0000 (00:56 +0100)
git-svn-id: https://svn.typo3.org/TYPO3v4/Extensions/contagged/trunk@11607 735d13b6-9817-0410-8766-e36946ffe9aa

ChangeLog
doc/realurl_example.php [new file with mode: 0644]
ext_emconf.php
pi1/class.tx_contagged_pi1.php
static/constants.txt
static/css/setup.txt

index 5fdb65d..42a6380 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,8 +1,13 @@
+v0.1.1 2008-09-01 Jochen Rau <j.rau@web.de>
+
+       * ADD Added a RealUrl example configuration to "doc" folder
+       * IMP Non filled markers (###TITLE###) are now removed
+
 v0.1.0 2008-08-31 Jochen Rau <j.rau@web.de>
 
-       * CHG Changed status to "beta"
+       * CHG Set status to beta
 
-v0.0.18 2008-08-31 Jochen Rau <j.rau@web.de>
+v0.0.18 and v0.0.19 2008-08-31 Jochen Rau <j.rau@web.de>
 
        * ADD fieldsToEdit
        * ADD New data source "references" added to experimental types
diff --git a/doc/realurl_example.php b/doc/realurl_example.php
new file mode 100644 (file)
index 0000000..44de2eb
--- /dev/null
@@ -0,0 +1,104 @@
+<?php
+/**
+ * This is an example configuration for RealURL to work together with contagged.
+ * You have to add only the PostVarSet (lines 53 to 72).
+ * This setup is based on EXT:aeUrlTool default realurl configuration.
+ */
+$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl'] = array ( 
+    '_DEFAULT' => array (
+        'init' => array (
+            'enableCHashCache' => '1',
+            'appendMissingSlash' => 'ifNotFile',
+            'enableUrlDecodeCache' => '1',
+            'enableUrlEncodeCache' => '1',
+        ),
+        'redirects' => array (
+        ),
+        'preVars' => array (
+            '0' => array (
+                'GETvar' => 'no_cache',
+                'valueMap' => array (
+                    'nc' => '1',
+                ),
+                'noMatch' => 'bypass'
+            ),
+            '1' => array (
+                'GETvar' => 'L',
+                'valueMap' => array (
+                    'de' => '0',
+                    'en' => '1',
+                ),
+                'noMatch' => 'bypass',
+            ),
+            '2' => array (
+                'GETvar' => 'lang',
+                'valueMap' => array (
+                    'de' => 'de',
+                    'en' => 'en',
+                ),
+                'noMatch' => 'bypass',
+            ),
+        ),
+        'pagePath' => array (
+            'type' => 'user',
+            'userFunc' => 'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
+            'spaceCharacter' => '-',
+            'languageGetVar' => 'L',
+            'expireDays' => '7',
+            'rootpage_id' => '2',
+        ),
+        'fixedPostVars' => array (
+        ),
+        'postVarSets' => array (
+            '_DEFAULT' => array (
+               'char' => array (
+                    array (
+                        'GETvar' => 'tx_contagged_pi1[index]',
+                    ),
+                ),
+               'id' => array (
+                    array (
+                        'GETvar' => 'tx_contagged_pi1[key]',
+                    ),
+                ),
+               'searchword' => array (
+                    array (
+                        'GETvar' => 'tx_contagged_pi1[sword]',
+                    ),
+                ),
+               'backToUid' => array (
+                    array (
+                        'GETvar' => 'tx_contagged_pi1[backPid]',
+                    ),
+                ),
+            ),
+        ),
+        'fileName' => array (
+            'defaultToHTMLsuffixOnPrev' => true,
+            'index' => array (
+                'rss.xml' => array (
+                    'keyValues' => array (
+                        'type' => '100',
+                    ),
+                ),
+                'rss091.xml' => array (
+                    'keyValues' => array (
+                        'type' => '101',
+                    ),
+                ),
+                'rdf.xml' => array (
+                    'keyValues' => array (
+                        'type' => '102',
+                    ),
+                ),
+                'atom.xml' => array (
+                    'keyValues' => array (
+                        'type' => '103',
+                    ),
+                ),
+            ),
+        ),
+    ),
+
+); 
+?>
\ No newline at end of file
index 5488ba0..96c549f 100644 (file)
@@ -3,7 +3,7 @@
 ########################################################################
 # Extension Manager/Repository config file for ext: "contagged"
 #
-# Auto generated 31-08-2008 18:02
+# Auto generated 01-09-2008 17:25
 #
 # Manual updates:
 # Only the data in the array - anything else is removed by next write.
@@ -40,7 +40,7 @@ $EM_CONF[$_EXTKEY] = array(
                'suggests' => array(
                ),
        ),
-       '_md5_values_when_last_written' => 'a:23:{s:9:"ChangeLog";s:4:"e057";s:10:"README.txt";s:4:"821e";s:22:"class.tx_contagged.php";s:4:"35e5";s:21:"ext_conf_template.txt";s:4:"0086";s:12:"ext_icon.gif";s:4:"50a3";s:17:"ext_localconf.php";s:4:"d45d";s:14:"ext_tables.php";s:4:"022c";s:14:"ext_tables.sql";s:4:"3600";s:27:"icon_tx_contagged_terms.gif";s:4:"50a3";s:16:"locallang_db.xml";s:4:"750b";s:7:"tca.php";s:4:"b9b2";s:14:"doc/manual.sxw";s:4:"0774";s:16:"js/selecttext.js";s:4:"1179";s:41:"model/class.tx_contagged_model_mapper.php";s:4:"8ead";s:40:"model/class.tx_contagged_model_terms.php";s:4:"a8ed";s:30:"pi1/class.tx_contagged_pi1.php";s:4:"ddcb";s:18:"pi1/contagged.tmpl";s:4:"4d1f";s:17:"pi1/locallang.xml";s:4:"1a34";s:20:"static/constants.txt";s:4:"af87";s:16:"static/setup.txt";s:4:"635b";s:20:"static/css/setup.txt";s:4:"22be";s:25:"static/examples/setup.txt";s:4:"b39c";s:31:"tests/tx_contagged_testcase.php";s:4:"4a3c";}',
+       '_md5_values_when_last_written' => 'a:24:{s:9:"ChangeLog";s:4:"e057";s:10:"README.txt";s:4:"821e";s:22:"class.tx_contagged.php";s:4:"35e5";s:21:"ext_conf_template.txt";s:4:"0086";s:12:"ext_icon.gif";s:4:"50a3";s:17:"ext_localconf.php";s:4:"d45d";s:14:"ext_tables.php";s:4:"022c";s:14:"ext_tables.sql";s:4:"3600";s:27:"icon_tx_contagged_terms.gif";s:4:"50a3";s:16:"locallang_db.xml";s:4:"750b";s:7:"tca.php";s:4:"b9b2";s:14:"doc/manual.sxw";s:4:"0774";s:23:"doc/realurl_example.php";s:4:"7ef3";s:16:"js/selecttext.js";s:4:"1179";s:41:"model/class.tx_contagged_model_mapper.php";s:4:"8ead";s:40:"model/class.tx_contagged_model_terms.php";s:4:"a8ed";s:30:"pi1/class.tx_contagged_pi1.php";s:4:"2a60";s:18:"pi1/contagged.tmpl";s:4:"4d1f";s:17:"pi1/locallang.xml";s:4:"1a34";s:20:"static/constants.txt";s:4:"ec47";s:16:"static/setup.txt";s:4:"635b";s:20:"static/css/setup.txt";s:4:"fd93";s:25:"static/examples/setup.txt";s:4:"b39c";s:31:"tests/tx_contagged_testcase.php";s:4:"4a3c";}',
        'suggests' => array(
        ),
 );
index b05e042..f7cb203 100644 (file)
@@ -91,8 +91,9 @@ class tx_contagged_pi1 extends tslib_pibase {
 
                if(method_exists($this, $renderFunction)) {
                        $content .= $this->$renderFunction();
+                       $content = $this->removeUnfilledMarker($content);
                }
-
+               
                return $this->pi_wrapInBaseClass($content);
        }
 
@@ -131,7 +132,8 @@ class tx_contagged_pi1 extends tslib_pibase {
                        if ( $termArray['exclude']!=1 && $this->conf['types.'][$termArray['term_type'].'.']['dontListTerms']!=1 ) {
                                if ( $this->indexChar==NULL || $termArray['indexChar']==$this->indexChar ) {
                                        $fieldsToSearch = t3lib_div::trimExplode(',',$this->conf['fieldsToSearch'] );
-                                       foreach ($fieldsToSearch as $field) {
+                                       foreach ($fieldsToSearch as $field) {                                           
+                                               // TODO make arrays searchable
                                                $swordMatched = preg_match('/'.preg_quote($this->sword,'/').'/Uui',$termArray[$field]) ? TRUE : FALSE;
                                        }
                                        if ( $swordMatched ) {
@@ -343,6 +345,11 @@ class tx_contagged_pi1 extends tslib_pibase {
 
                return $indexArray;
        }
+       
+       protected function removeUnfilledMarker($content) {
+               return preg_replace('/###.*?###/', '', $content);
+       }
+
 }
 
 
index 627b3ec..756e51b 100644 (file)
@@ -57,7 +57,7 @@ contagged {
        modifier = Uuis
 
        # cat=plugin.contagged//91; type=string; label=[Fields to be searched]: Fields to be searched.
-       fieldsToSearch = term,term_main,term_alt,term_replace,desc_short,desc_long
+       fieldsToSearch = term,term_main,term_replace,desc_short,desc_long
 
        # cat=plugin.contagged//92; type=string; label=[Sort Field]: The front-end lists will be sorted by this field.
        sortField = term
index 38d92cb..7dd2666 100644 (file)
@@ -15,5 +15,8 @@ plugin.tx_contagged {
                div.tx-contagged-pi1 dt {
                        font-size: 1.2em;
                }
+               div.tx-contagged-index span {
+                       margin: 0 3px;
+               }
        )
 }
\ No newline at end of file