diff --git a/modules/ModuleTagListByCategory.php b/modules/ModuleTagListByCategory.php index 1cdfdeb..2f7c902 100644 --- a/modules/ModuleTagListByCategory.php +++ b/modules/ModuleTagListByCategory.php @@ -110,6 +110,16 @@ protected function compile() $this->Template->articles = $this->getArticlesForArticleTags($tagid_cats[$sourcetable]); $pages = array_merge($pages, $this->getPagesForArticleTags($tagid_cats[$sourcetable])); break; + default: + if (isset($GLOBALS['TL_HOOKS']['tagSourceTable']) && is_array($GLOBALS['TL_HOOKS']['tagSourceTable'])) { + $arrTagTemplates = array(); + foreach ($GLOBALS['TL_HOOKS']['tagSourceTable'] as $type => $callback) { + $this->import($callback[0]); + $arrTagTemplates = array_merge($arrTagTemplates,$this->$callback[0]->$callback[1]($sourcetable,$tagid_cats[$sourcetable])); + } + $this->Template->other_pages = $arrTagTemplates; + } + break; } } $uniquepages = array(); diff --git a/templates/modules/mod_tag_listbycategory.html5 b/templates/modules/mod_tag_listbycategory.html5 index 62f3311..d013fc5 100644 --- a/templates/modules/mod_tag_listbycategory.html5 +++ b/templates/modules/mod_tag_listbycategory.html5 @@ -26,9 +26,19 @@

lngPages; ?>

+ +other_pages)): ?> +

lngOtherPages; ?>

+ diff --git a/templates/modules/mod_tag_listbycategory.xhtml b/templates/modules/mod_tag_listbycategory.xhtml index 62f3311..5029fb1 100644 --- a/templates/modules/mod_tag_listbycategory.xhtml +++ b/templates/modules/mod_tag_listbycategory.xhtml @@ -32,4 +32,14 @@ +other_pages)): ?> +

lngOtherPages; ?>

+ +