php - Joomla 3 add article tags to search results -


i appreciate help.

i creating site joomla 3.4. articles tagged not showing tags in search results. i'm not sure whether should or not, have read following answer: article tags shown in article list-layout

i concluded should able add following default_results.php page, similar:

            <?php         // set tags         $tags = '';         if (!empty($result->item->tags->itemtags)) {             jloader::register('tagshelperroute', jpath_base .     '/components/com_tags/helpers/route.php');             foreach ($result->item->tags->itemtags $i => $tag) {                 if (in_array($tag->access,     jaccess::getauthorisedviewlevels(jfactory::getuser()->get('id')))) {                     if($i > 0) $tags .= ', ';                     $tags .= '<a href="'.jroute::_(tagshelperroute::gettagroute($tag->tag_id . ':' . $tag->alias)).'">'.$result->escape($tag->title).'</a>';                 }             }         }         $args['tags'] = $tags;         echo $tags;         ?> 

could amend please or tell me going wrong?

i have customised search results little add intro-image , have compared non-overridden file , not showing call tag info.

i had funny feeling @ start of build search results displayed tags standard , not. if that's case need go backward... tags show in article page whole module isn't broken, , have enabled 'show tags' in many place possible - though of course shouldn't make difference code.

can please?

regards m


Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -