Changes for page Seitenumbrüche bei wiederholbaren Elementen
Change comment:
Copied from xwiki:GettingStarted.PageBreaksDynamicElements
Summary
-
Page properties (3 modified, 0 added, 0 removed)
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. gru1 +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 - 8 - 9 - 10 - .dynamic-row:not(:first-child) { 11 - 12 - 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}}