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

    I have changed the code to allow for a page to show the latest comments from Jot. It works great but is there a way I can have the subject link back to the original posting page?

    Thanks
      BBloke
      • 36416
      • 589 Posts
      Quote from: BBloke at Apr 04, 2008, 03:33 AM

      I have changed the code to allow for a page to show the latest comments from Jot. It works great but is there a way I can have the subject link back to the original posting page?


      I am using this &tplComments chunk:
      <h4><a href="[~[+comment.uparent+]~]#kom[+comment.id+]">[+comment.createdby:userinfo=`fullname`:ifempty=`[+comment.custom.name:ifempty=`[+jot.guestname+]`:esc+]`+],
      <small>[+comment.createdon:date=`%d.%m. %H:%M`+]</small></a></h4>
      <p>[+comment.content:wordwrap:esc:nl2br:limit=`120`+] <a href="[~[+comment.uparent+]~]#kom[+comment.id+]" title="read more"><strong>»</strong></a></p>
      


      with Jot call inside target document that uses #kom[+comment.id+] anchors at the start of a given single comment.
        • 2912
        • 315 Posts
        That is perfect and beautiful.

        Thanks Eol.

        I think I’m missing the placeholders in the wiki for Jot.
          BBloke