Download
We're evolving to serve you better! This current forum has transitioned to read-only mode. For new discussions, support, and engagement, we've moved to GitHub Discussions.

[Technews] Main Tag is not displayed when enabled

  • #7474
    Avatar photo[anonymous]

    Hi Devs,

    There is an error in the condition to display the “Main Tag” in post under the Post Title.

    I found this problem when the Main Tag was not displayed even when it was enabled if neither Date nor Author were enabled. This was due to @config.post.displayTagName being used.

    {{#checkIfAny @config.post.displayDate @config.post.displayAuthor @config.post.displayTagName}}

    The correct statement should be checking for @config.post.displayCategoryName instead

    {{#checkIfAny @config.post.displayDate @config.post.displayAuthor @config.post.displayCategoryName}}
    #7476
    Avatar photo[anonymous]

    I wish to add that “displayTagName” isn’t defined in config.json whereas “displayCategoryName” is.

    Hence, @config.post.displayTagName needs to be replaced by @config.post.displayCategoryName in the #checkif statements

    The error occurs in four files:

    • post.hbs
    • post-alternative.hbs
    • partials\frontpage-post.hbs
    • partials\frontpage-post-alternative.hbs