We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 22446
    • 181 Posts
    I am a newbie to Jot. I have asked a couple of questions here at the Modx Forums and the modx community has been fantastic in answering them. I do have some other questions.

    1) How to add custom fields to the jot form. I have been doing a lot of seaching and found out how to add name and email. I want to know how can I add additional custom fields. Example being "Location".

    2) How can I manipulate the layout of the comments? I am unsure of how to change the layout. If someone knows of an example I would appreciate that.

      • 33992 ☆ A M B ☆
      • 455 Posts
      1) Just do same as name,email for any other fields:
      1-1) Create a input in form like this:
      <input name="myCustomField" type="text" value="[+form.field.custom.myCustomField:esc+]" />

      1-2) Add name of field to &customfields parameter:
      [!Jot? .... &customfields=`name,email,myCustomField` .... !]

      1-3) To display custom field value in comments put placeholder below in your comment template:
      [+comment.custom.myCustomField+]



      2) Jot default templates are placed in assets/snippets/jot/templates.
      For example chunk.comment.inc.html contains comment template...



      Good Luck
      AHHP
        God loves me. 【ツ】


        MODX.ir (Persian Support)

        Boplo.ir/modx/ (Persian)