Page 1 of 1

Different footers or headers in the same output

Posted: Sat Oct 01, 2022 1:10 am
by verostarry
Hi,
I'm wondering if it's possible to set different headers or footers depending on how you've flagged a topic within the same PDF (and webhelp, but PDF is more important for us). For example, the default footer can say Revision 1, and certain pages in a next revision will have to say Revision 2 while the ones that were untouched stay Revision 1.
Thanks,
Veronica

Re: Different footers or headers in the same output

Posted: Sat Oct 01, 2022 2:50 pm
by chrispitude
Hi Veronica,

What elements or attributes in the DITA content do you want to use to trigger this? For example,
  • Would you be setting the @rev attribute to 1.0 or 2.0 to do this?
  • Would you be using some @outputclass value?
  • Would this be applied to <topic> elements, individual content elements, or possibly both?

Re: Different footers or headers in the same output

Posted: Mon Oct 03, 2022 9:55 am
by julien_lacour
Hello Veronica,

In addition to what Chris said, you can take a look at this topic: How to Change Header Text for Each Topic.

Regards,
Julien

Re: Different footers or headers in the same output

Posted: Tue Oct 04, 2022 12:01 am
by verostarry
Thanks Chris and Julien! I'll try to deep dive into this article and try things out. This change can and should be applied to topic elements. If an individual element within a topic changes, we consider the whole topic to be in whatever revision that change was under. That being said, it might make sense to add something to the header metadata.

The @rev attribute seems correct too, especially because we're talking about revisions. We have a manual where there are 5 different revision numbers living in the same manual (so potentially 5 varieties of footer).
Thanks for the help!