• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
1

Conditional page break in repeating-section element

Community Beginner ,
Nov 28, 2021 Nov 28, 2021

Copy link to clipboard

Copied

I have a{% repeating-section objectname %} element inside a .docx word template which I need to ensure starts on a new page instead of breaking mid-section. Here is a sample of how it looks in the Word template:

 

{% repeating-section quotes %}

{{Name}}
{{QuoteID}}
{{morefields_etc_etc}}
Information about each quote goes here in a table, but I might have 10 quotes which are being iterated. Quote #3 gets broken across two pages in the PDF result.

I want to include a CSS tag in the word template which performs the function of:
page-break-inside: avoid;

{% end-section %}

 

I have tried{% repeating-section quotes page-break-inside: avoid; %} 

but it didnt work and the entire loop was ignored.

 

How can I get a conditional page break?

 

Views

171

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation
Resources