I’m trying to put 2 jot calls on a same page with independent forms, but it duplicates the comments.
I’ve created a snippet called "jot2", created a folder called "jot2" and changed de base path in the snippet "$jotPath = $modx->config[’base_path’] . ’assets/snippets/jot2/’;" and it doesn’s work.
Both your snippets create/read/write the same custom fields in your database...
Thanks, it worked!!! but how can I change the templates?
The first call example:
[!Jot? &placeholders=`1` &tagid=`jot1` &output=`0 ` &tplComments=`form2`!](template file is called chunk.form2.inc.html)
The second one:
[!Jot? &placeholders=`1` &tagid=`jot` &output=`0 ` &tplComments=`form`!](default template file called chunk.form.inc.html)
This gives me 2 individual comments systems, but both uof them use the default "form" template.
use [+jot.html.form.jot+] for the second call
Thanks, I’ve already try that before posting, the problem now is that just display the name of the chunk in text plane:
First call: (chunck file is called chunk.form.inc.html)
[!Jot? &canmoderate=`Site Admin` &placeholders=`1` &tagid=`comentarios` &output=`0 ` &sortby=`createdon:a` &numdir=`0` &tplForm=`form`!]
Second call: (chunck file is called chunk.form2.inc.html)
[!Jot? &canmoderate=`Site Admin` &placeholders=`1` &tagid=`email` &output=`0 ` &sortby=`createdon:a` &numdir=`0` &tplForm=`form2`!]
Thganks for help.
paste the content of...
...into modx chunks
FINALLY IT WORKED¡¡¡¡¡¡ Thanks mrhaw, much apreciated.
With this approach you only need ONE snippet!