What do you do if you want some topics in your project to use one Master Page and other topics to use a different Master Page? That’s the question I had to ask recently, and the answer wasn’t immediately obvious. In Flare 10, the most common way of associating a Master Page with a topic is to associate it with the entire project (via the Target), but doing that applies the Master Page to every topic. I looked around, expecting to find a simple ‘link with master page’ option, but no, there was no such thing. So I went ahead and asked MadCap and got a surprisingly convoluted solution, which you can see below.
Linking a Flare Topic to a Master Page
To apply a Master Page to just one topic, you need to create a new html class in your CSS stylesheet. Yep, that’s right, you’ve got to mess about with CSS. Luckily, what you need to do is pretty easy.
First, create the Master Page that you want to associate with your topic.
Open your stylesheet in the Advanced View of Flare’s built-in editor. Set the editor to Show All Styles.
Find the HTML class. Right-click on it and select Add Class.
Create a new class and give it a name. It doesn’t matter what the name is, but it makes sense to call it something related to the type of Master Page you want to use.
Set the editor to show Property Groups.
Select your new HTML class and expand its Unclassified group.
Find the ‘mc-master-page’ property and associate it with the Master Page you created in step 1.
Save your stylesheet.
Display your topic in Flare’s XML Editor and right-click on the HTML block at the side. Select the Style Class option and then choose the option for the HTML class that you created.
Save the topic. Your topic will now use the Master Page you associated with the HTML class instead of the Master Page assigned to the project.
That’s it, job done.
Hopefully, MadCap will make a simpler mechanism for doing this in future releases of Flare. They agreed with me that it is not as user-friendly as it could be and an improvement request has been made, so fingers crossed.
I am a freelance technical writer and I can help your business to deliver documentation that helps your customers and reduces your support costs.