From version 1.1 >
edited by gru
on 11.03.2019, 16:29
To version < 6.1
edited by awa
on 14.05.2019, 16:23
Change comment: Copied from xwiki:GettingStarted.PageBreaksDynamicElements

Summary

Details

Page properties
Title
... ... @@ -1,1 +1,1 @@
1 -$services.localization.render("PT.Main.SeitenumbruchbeidynamischenElementen")
1 +Page breaks with repeatable elements
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.gru
1 +XWiki.awa
Content
... ... @@ -1,15 +1,15 @@
1 -When printing forms, a page break per CSS is already inserted after each page. Sometimes it is useful to insert a page break after each dynamic element, when the dynamic element is very large. It must be noted that the CSS property display must be switched to block, otherwise no page break is generated.
2 -When the dynamic form element's name is //tf1//, then a new line can be created with the following CSS.
1 +When printing forms, some {{smallcaps}}Css{{/smallcaps}} is applied which, among other things, adds a page break after each form page. Sometimes it is a good idea to insert a page break after each element repetition, when the repeated element is very large. Please note that {{smallcaps}}Css{{/smallcaps}} property //display// must be set to //block//, otherwise no page break is created.
3 3  
3 +When the repeatable form element is named //tfEmail//, you can add page break with the following {{smallcaps}}Css{{/smallcaps}}.
4 4  
5 5  {{code language="css"}}
6 6  @media print{
7 - [xn="tf1"] {
8 - display: block !important;
9 - }
10 - .dynamic-row:not(:first-child) {
11 - display: block !important;
12 - page-break-before: always !important;
13 - }
7 + [xn="tf1"] {
8 + display: block !important;
9 + }
10 + .dynamic-row:not(:first-child) {
11 + display: block !important;
12 + page-break-before: always !important;
13 + }
14 14  }
15 15  {{/code}}
Copyright 2000-2024