Dynamic Header & Footer
One of Betterprint's powerful benefits are dynamic Header and Footer. They will allow features like multiple-headers per Document, Adding running Texts or Numbers into the header and much more.
Basics
Betterprint's dynamic feature is based on paginate-source and paginate-target elements. All contents of the paginate-source element will be displayed within the appropriate paginate-target element. In order to link source and target with each other, we need to set the data-key attribute with any custom key:
Running content
Source elements will allow to add dynamic values into your header. Each target element will always display only the previous source content, which allows defining a source multiple times in order to display different content on each page. Let's make an example:
Header Source Element
Header is a reserved keyword and will automatically add it's content to the main header div. You can use it like this:
Footer Source Element
Footer is a reserved keyword and will automatically add it's content to the main footer div. You can use it like this:
Page numbers
Page Numbers are a reserved Source keyword and will be set automatically. In order to add page numbers, you'll just need to add this into your header:
Last updated