Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

'Allow Page Breaks within Content' is greyed out on Subform. No parent Subform exists.

Avatar

Former Community Member

Hi,

I am trying to get text, that has been placed near the end of a page, to break to a new page, but I cannot get this to work.

I have a Subform, called FOOTER_TEXTS and containing 3 text fields, just below and outside of the 'MAIN' Content Area and just above a fixed (static) Subform called COMPANY_FOOTER.

The JavaScript that you see is just there to ensure that FOOTER_TEXTS gets printed only on the last page.

I have all 3 text fields in FOOTER_TEXTS set to 'Allow Multiple lines' and the height is set to 'Expand to fit' but the option to 'Allow Page Breaks within Content' is greyed-out in the Subform and all 3 Text Fields, resulting in the text in Subform COMPANY_FOOTER being overwritten.

What I would like is the text from the 3 fields in FOOTER_TEXTS to be printed on the bottom of the last page, just above the Subform COMPANY_FOOTER, and I would like the text to break to another page, if necessary.

Does anyone have any ideas on how I can get this to work?

Thank you in advance.

Kieron Kelly

Stockholm, Sweden

P.S. Subform is set as 'Flowed'.

Footer_text_subform.png

1 Accepted Solution

Avatar

Correct answer by
Level 10
5 Replies

Avatar

Level 10

Msterpages do not provide page breaks at all.

You have to move your content to a body page.

Avatar

Level 10

If you place Subform in the Master page, the option will be greyed out..

Move the content out of the master page and place it in the body page.

Keep only those controls that are common to all the pages, in the master page.

Thanks

Srini

Avatar

Former Community Member

Radzmar and Srini,

I appreciate your answers and now understand that Page Breaks cannot be provided in Master Pages.

But just adding Footer Texts to the body with a gap after the last line item is not really sufficient.

What I want to do may not be possible, but here it is. I want to:

1) Print out Header and Footer data for, say, a Purchase Order. Both Header and Footer are in the Master Pages.

2) Print out Line Item data. The part that prints out the line items, and that can cover just one page or many, is in the body page.

3) Print out Subform FOOTER_TEXTS, also in body page, but start printing on the last page (this will happen anyway) about 2cms above the static Footer (this is the hard, perhaps impossible part). Break to new page if required and print from top of new page.

I guess that my question now is:

Is it possible to position Subform FOOTER_TEXTS, consisting of 3 separate text fields that can be one or many lines,  in the body page but in such a way that it always begins printing out about 2 cms above the static Footer.. In other words, can FOOTER_TEXTS be 'Positioned'.

Regards,

Kieron

Avatar

Correct answer by
Level 10

Avatar

Former Community Member

Jono,

Looks like this should work.

A very cool solution.

Thank you.

Kieron