We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 9856
    • 4 Posts
    Hi all,

    I’m stuck onto a problem :

    I would like to filter comments so a web user sees only the ones created since his last login. Is there a way to do that with a Jot call ?
      • 33992 ☆ A M B ☆
      • 455 Posts
      Hi,

      putting the comment tpl (jot/templates/chunk.comment.inc.html) between codes below may help:
      [+phx:userinfo=`lastlogin`:ifempty=`0`:lt=`[+comment.createdon+]`:then=`
      
      comment tpl
      
      `:else=``:strip+]


      it prints the comments that has created from user last login.

      I think replacing [+comment.createdon+] with [+comment.publishedon+] is better.
        God loves me. 【ツ】


        MODX.ir (Persian Support)

        Boplo.ir/modx/ (Persian)