southbeach
Programmer
Hope this is the correct forum for this question ...
Using smarty template engine, I am trying to conditionally add a page break
This snippet appears under each row tab
The CSS I am using is
I do not see the string "Page Break" on the rendered page nor I get a page break if I print the document. This tells me that there is something wrong with my logic and/or syntax.
Can you offer some advise?
Thanks!
--
SouthBeach
The good thing about not knowing is the opportunity to learn - Yours truly, 2008.
Using smarty template engine, I am trying to conditionally add a page break
Code:
{assign var="left_line_count" value="`$left_line_count`+1" }
{ if $left_line_count > $max_lines_page }
<p class="break">Page Break!</p>
{assign var="left_line_count" value="18" }
{ /if }
Code:
<tr> blah blah blah </tr>
The CSS I am using is
Code:
p.break { page-break-after: always; }
I do not see the string "Page Break" on the rendered page nor I get a page break if I print the document. This tells me that there is something wrong with my logic and/or syntax.
Can you offer some advise?
Thanks!
--
SouthBeach
The good thing about not knowing is the opportunity to learn - Yours truly, 2008.