Page 1 of 1

Single Sourcing for Page Layouts

PostPosted: Mon Jan 23, 2017 9:38 am
by jlockerby
My project is set up to export separate PDFs for each topic in my target. I've had a request to include the title of each topic in the header rather than on the topic, so that it repeats at the top of each page. (This is completely manageable in this particular project since it's an unusual situation - I'm trying to use Flare to manage the schedule for a conference, so I'll have only 8 topics total for this target.)

My question is, what is the best way to single source this so that I don't need to create a separate page layout for each of those 8 topics to include the correct title for each topic? If I'm understanding things correctly, variables will not work since the variable needs to be the same for all topics within the target. I tried setting up conditions and snippet conditions (each of those topics is already set up to include/exclude content based on snippets to show the correct schedule information), but it doesn't seem to be applying to the page layout content, only to the content within the topic itself. So, instead of updating as intended, to display only "Track 1" on the topic that is set to display only Track 1 content, it displays "Track 1 Track 2 Track 3," and so on - no conditions are being used.

It looks like a similar question was asked a few years ago (https://forums.madcapsoftware.com/viewtopic.php?f=75&t=16944&hilit=conditions+page+layout), and the consensus was that for master pages you SHOULD be able to use conditions, but it wasn't working. Anyone know if this has been fixed, if this is different for master pages vs. page layouts, or if there is a workaround besides building 8 different master pages to include the correct title on each one?

Thank you for any ideas!!

Re: Single Sourcing for Page Layouts

PostPosted: Mon Jan 23, 2017 6:43 pm
by Psider
Could you use Heading or Running Head variables? They sound like they are designed for what you are wanting to do.

http://docs.madcapsoftware.com/FlareV12 ... sGuide.pdf

Re: Single Sourcing for Page Layouts

PostPosted: Mon Jun 12, 2017 1:55 am
by tpmtpm56
I have a similar situation, if I understand yours correctly.
I wanted different footers in my PDFs, and I was successful using variables. My situation is simpler, but it worked.
We have two guides that are similar: one for external (customer) use, one for internal use. So I created a single project for both guides. Some topics apply to the external guide, some topics apply to the internal guide, and some apply to both guides. I then created two separate TOCs for each guide type. I have a single page layout for normal pages (i.e. pages that are not chapter first pages, contents, index, etc.), with a footer that uses my variable 'GuideTitle'.
So I created two different PDF targets, and manually edited the Variables category in the respective PDF Target Editor accordingly – i.e. I manually entered 'User Guide' and 'Reference Guide' in the 'Variables' category > 'Definition' field of the respective PDF Target Editor.
It works. I hope this is of some help!
But as long as I'm here, my question is this: Is this considered the correct/best practices/most efficient way to achieve this? It seems clunky and ad hoc. Or is it?
I originally thought that specific page layouts would do the trick, whose application would be based on conditions. Or is this completely off the mark?