We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 25560
    • 16 Posts
    hi

    is there any way around this problem:

    I have a page (latest-news.html) that displays the most recent blog post in full, using tplFirst, and then links to the older blog posts.

    Ideally I’d like to have the Jot comments for the most recent blog post display.

    The problem is, that Jot works by commenting on the document, so any comments made get applied to "latest-news" rather than the latest blog post if that makes sense.

    Jot takes the Document ID parameter for the page its called on, rather than the ID of the document Ditto is showing.

    Can I pass the value of the document Ditto is showing to a Jot call?

    hope this makes sense..

    thanks!
      • 1122
      • 209 Posts
      Yes, you can pass the requested document id. Within your Ditto’s template tplFirst, you need to make Jot call like this:
      [[Jot? &docid=`[+id+]` &action=`comments` ... ]]
      

      It means: display comments alone (by default Jot displays comments + submit form) that are attached to document specified by "docid" parameter (filled in by Ditto).