Forum How do I...?

Set different footers for sections of a document

silviobierman
I need to have different footers for each chapter in my document. I read something about page groups but could not find an example of how to use them. Do I need page groups or is there a different way of doing this?

Thanks in advance

Silvio
mikeday
Not necessarily, you could just flow a different block to the header at the beginning of each chapter, or if you are using string-set, change the string value at the beginning of each chapter.
silviobierman
Hello Mike,

Thanks, that sounds promising. How do I flow a block to the header/footer? Is that a CSS style I can assign to an HTML element?
mikeday
Yes, try something like this:
@page { 
    @top { content: flow(header) }
}
h1 { flow: static(header) }
silviobierman
Works like a charm. Thank you very much.