Sign in

[Technews] Main Tag is not displayed when enabled

  • This topic has 1 reply, 1 voice, and was last updated 1 month, 1 week ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #7474
    shaun2k

    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
    shaun2k

    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
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.