[+FEATURE] You can now specify, whether related terms should be fetched or not by...
authorjocrau <jocrau@735d13b6-9817-0410-8766-e36946ffe9aa>
Mon, 30 Jul 2012 14:47:00 +0000 (14:47 +0000)
committerBastian Bringenberg <spam@bastian-bringenberg.de>
Thu, 4 Dec 2014 23:56:08 +0000 (00:56 +0100)
git-svn-id: https://svn.typo3.org/TYPO3v4/Extensions/contagged/trunk@64954 735d13b6-9817-0410-8766-e36946ffe9aa

model/class.tx_contagged_model_terms.php
static/constants.txt
static/setup.txt

index 6cd2ae1..c668359 100644 (file)
@@ -109,7 +109,7 @@ class tx_contagged_model_terms implements t3lib_Singleton {
        function findTermByUid($dataSource, $uid) {
                $additionalWhereClause = ' AND uid=' . intval($uid);
                $terms = $this->fetchTermsFromSource($dataSource, $storagePidsArray, $additionalWhereClause);
-               $this->fetchRelatedTerms($terms);
+               if ($this->conf["fetchRelatedTerms"] == 1) $this->fetchRelatedTerms($terms);
                if (is_array($terms) && count($terms) > 0) {
                        return array_shift($terms);
                } else {
index 5a49768..dc90394 100644 (file)
@@ -57,6 +57,8 @@ contagged {
        fieldsToParse = 
        # cat=contagged (list)//39; type=boolean; label=Auto-exclude Terms: Set this to avoid parsed terms linking to themselves in a single view.
        autoExcludeTerms = 1
+       # cat=contagged (list)//39; type=boolean; label=Fetch related terms: If you don't use related terms, you can set this to 0 and gain a little bit of performance.
+       fetchRelatedTerms = 1
        # cat=contagged (list)//40; type=string; label=Fields to Map: Fields to be mapped.
        fieldsToMap = uid,pid,term_main,term_alt,term_type,term_lang,term_replace,desc_short,desc_long,image,imagecaption,imagealt,imagetitle,related,link,exclude
        # cat=contagged (list)//50; type=boolean; label=Add Back Link: Add a back link to the refering page. Be aware of caching if you activate this!
index 0fc32a6..e9c11d7 100644 (file)
@@ -23,6 +23,7 @@ plugin.tx_contagged {
        excludePages = {$contagged.excludePages}
        excludeTags = {$contagged.excludeTags}
        autoExcludeTags = {$contagged.autoExcludeTags}
+       fetchRelatedTerms = {$contagged.fetchRelatedTerms}
        checkPreAndPostMatches = {$contagged.checkPreAndPostMatches}
        respectCase = {$contagged.respectCase}
        addTitleAttribute = {$contagged.addTitleAttribute}