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.

Check post title in .hbs

  • #1307
    Avatar photo[anonymous]

    Hi,

    I’m looking for a way to check the post title:

    `{{#each posts}}`
    `   {{#checkIf post.title ‘==’ “My Title”}}`
    `      … … …`
    `   {{/checkIf}}`
    `{{/each }}`

    post.title doesn’t work. Is there any way to do it?

    Thank you.

    #1308
    Avatar photo[anonymous]

    This is solution:

    `{{#each posts}}`
    `   {{#checkIf title ‘==’ “My Title”}}`
    `      … … …`
    `   {{/checkIf}}`
    `{{/each}}`

    it didn’t work because the post was hidden 🙁

    `{{#each hiddenPosts}}`
    `   {{#checkIf title ‘==’ “My Title”}}`
    `      … … …`
    `   {{/checkIf}}`
    `{{/each}}`

    Ciao