Did so. Unfortunately same result, comment tag and #each are stripped.
One more problem with pdf template
Collapse
X
-
Is this code is the only code you have? Could you confirm:
1. Create new template.
2. Switch Header field to Code View.
3. Paste the code.
4. Save.
5. Edit again.
6. Switch Header field to Code View.
7. Check whether {{#each}} is stripped.Leave a comment:
-
normally I use Chrome, but tested also in Edge and Firefox with the same result.Leave a comment:
-
Code before saving:
Code:<div><!--{{#each itemList}}--> {{lastName}}, {{firstName}} {{instrument}} <!--{{/each}}--></div>
Code:<div> {{lastName}}, {{firstName}} {{instrument}} </div>
I don`t know, if it is important, but I am developing local on a Windows server stack (WAMP)..Leave a comment:
-
Putting "<!-- {{#each itemList}} -->" in Code View worked for me. It didn't strip anything.
Can you provide your template code?Leave a comment:
-
Hello,
I did exactly that. But the embedded editor strips the comment tags and messes the rest of the tags. Tried to put them as <....>, also did not work. I searched about the whole day in everything about handlebars, tcpdf and even summernote (which is the embedded editor).
I tried to find, where the HTML is stripped, without success. I don`t know if i missed any file, where this is configured, but I don`t think so.
I wonder, if nobody uses that PDF function, because there are really few threads about that. The "manual" is ridiculous. Does explain quite nothing. I consider ESPOCRM a really good CRM and database tool, but it lacks of understandable and thorough manual. The most of the time you have to pass lots of trial and error, if you want to find solutions. And this problem I am facing here ist really a simple one (normally).
I am quite frustrated.Leave a comment:
-
One more problem with pdf template
Ok, one problem solved, but another came up.
I want to print a list of contact items and guess it is right to use #each for that. I looked into the documentation and there it says regarding #each that you must put the each helper in HTML-comment tags using the Code-View of the editor. I did so.
But when I save and open again to edit, the comment tags are stripped. How can I make the template editor not to strip the tags?
Leave a comment: