We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 37042
    • 384 Posts
    I have a situation whereby I have duplicated the two sample Article templates.

    When I look at my BlogTemplate which is the blog 'container' template listing all my posts, each one has Tags displaying nicely.

    When I view an individual post / article my Tags are not showing and underneath the title, it just says

    Posted on Dec 13, 2011 | Tags:

    I'm running
    - Revo 2.2.0 rc2
    - Articles 1.2.0
    - taglister 1.1.4

    My BlogPostTemplate has the following code in the Template



    <p class="post-info">Posted on [[*publishedon:strtotime:date=`%b %d, %Y`]] |

    Tags: [[*articlestags:notempty=`<span class="tags" style="float: left;">Tags: [[!tolinks? &useTagsFurl=`1` &items=`[[*articlestags]]`&target=`[[*articles_container]]`]]</span>`]]

    [[!+comments_enabled:is=`1`:then=` | <a href="[[~[[*id]]]]#comments" class="comments">Comments ([[!QuipCount? &thread=`article-b[[*articles_container]]-[[*id]]`]])</a>`]]
    </p>

    <div class="entry">
    <p>[[*introtext]]</p>



    Can anyone assist?


      ...
      • 37693
      • 47 Posts
      This is my code using the default 'articlestags':

      [[*articlestags:notempty=`<span class="tags">Tags: [[+article_tags]]</span>`]]


      Hope this helps.

      Cheers,
      Shaun
        • 29888
        • 2 Posts
        I had the same problem to show the tags on blog post.

        My Settings: Article Document -> Enable Comments:No

        i solved the problem in the article.class.php

        search for line: 46

        if ($this->xpdo->getOption('commentsEnabled',$settings,true)) {
        


        the else statement is empty

         } else {
        $this->xpdo->setPlaceholder('comments_enabled',0);
        }
        


        i paste the following lines in the else part from if statement

         
                        $this->getTagsCall($settings);
                        $this->xpdo->setPlaceholder('comments_enabled',0);
                        /** @var ArticlesContainer $container */
                        $container = $this->getOne('Container');
                        if ($container) {
                            $container->getArchivistCall();
                            $container->getLatestPostsCall();
                            $container->getTagListerCall();
                        }
        


        This show tags and latest post in default sample.ArticleTemplate.

        Hope this helps.

        Thomas