Lee Hopper
11/17/2022, 10:43 AMLee Hopper
11/17/2022, 10:44 AMDavid B
11/17/2022, 8:27 PMlist
and what's inside it?
It might not be a filter for itemtype
, it might be filtered on something weird like item.quantity gt 0
Lee Hopper
11/18/2022, 9:53 AM<table>
<#list record.item as item>
<#if item_index==0>
<thead>
<tr>
<th class="bold background-grey">Line</th>
<th class="bold background-grey">Description</th>
<th class="bold background-grey">Item</th>
<th class="bold background-grey">Qty</th>
<th class="bold background-grey">Line Total</th>
</tr>
</thead>
</#if>
<tr>
<td>${item_index+1}</td>
<td>${item.description}</td>
<td>${item.item}</td>
<td>${item.quantity}</td>
<td>${item.amount}</td>
</tr>
</#list>
</table>
Lee Hopper
11/18/2022, 9:55 AMLee Hopper
11/18/2022, 11:25 AM<table>
<#list record.item as item>
<#if item_index==0>
<thead>
<tr>
<th class="bold background-grey">Line</th>
<th class="bold background-grey">Description</th>
<th class="bold background-grey">Item</th>
<th class="bold background-grey">Qty</th>
<th class="bold background-grey">Line Total</th>
</tr>
</thead>
</#if>
<!--<#if item.itemtype?starts_with("Inv") || item.itemtype?starts_with("Kit") || item.itemtype?starts_with("Non")>-->
<tr>
<td>${item_index+1}</td>
<td>${item.description}</td>
<td>${item.item}</td>
<td>${item.quantity}</td>
<td>${item.amount}</td>
</tr>
<!--</#if>-->
</#list>
</table>
Matt Poloni
11/18/2022, 1:56 PM<!-- -->
is the syntax for HTML comments
2. <#if ></#if>
are Freemarker tags that are compiled out before the HTML is “run” to create the final document
3. <#-- -->
is the syntax for Freemarker comments, which will remove whatever’s between the start and end as it’s being compiled, before it’s “run” to create the final document
If you’d ideally like to keep that if block there (but commented out), I’d suggest replacing the !
with a #
in your comment and you’ll probably see the behavior you were expecting.
It’s just a matter of what the comments are applied to. I only expect HTML comments to act on whatever final HTML is compiled between them, so they won’t remove Freemarker tags themselves. Since Freemarker comments are parsed by the compiler, they’ll definitely remove Freemarker tags and should (I think) also remove any HTML content between start and end.Matt Poloni
11/18/2022, 2:05 PMLee Hopper
11/18/2022, 2:16 PMMatt Poloni
11/18/2022, 2:19 PMreptar
11/18/2022, 5:04 PMDavid B
11/20/2022, 8:20 PMNickSuite
11/23/2022, 5:34 PMLee Hopper
11/23/2022, 10:49 PM