I have a master page that works well with everything except for one file that is called with a JavaScript. I'd like to keep that file within the project because it needs to be picked up for output, but I don't want the master page applied recursively when called from another topic.
How do I prevent that one topic from using the global master page in a WebHelp target?
Thanks,
Jenny
Can I exclude a master page from a topic?
Re: Can I exclude a master page from a topic?
I don't have Flare running at the moment, so this is just off the top of my head. Create a custom <html> tag and set its masterpage link to "none". The masterpage link appears in the Unclassified group for the <html> tag as I recall. Open that Javascript file inside word then apply the new <html> class to the <html> tag for that topic only, then save the topic. Build the output and test it.
Theoretically that should work because the custom <html> class should override the masterpage specified in the target or the main <html> tag (depending on which method you use to call the masterpage). If that doesn't work, then it's probably that the masterpage is applied last, in which case the masterpage in the target is overriding what's written in the custom html tag. If that happens, then in the target, set it to "none" for masterpages, then in the stylesheet, specify the main topic masterpage for the main <html> tag. The masterpage will still be applied to all topics except the one set to use the custom html tag which has the masterpage link disabled.
Hope that all makes sense.
Theoretically that should work because the custom <html> class should override the masterpage specified in the target or the main <html> tag (depending on which method you use to call the masterpage). If that doesn't work, then it's probably that the masterpage is applied last, in which case the masterpage in the target is overriding what's written in the custom html tag. If that happens, then in the target, set it to "none" for masterpages, then in the stylesheet, specify the main topic masterpage for the main <html> tag. The masterpage will still be applied to all topics except the one set to use the custom html tag which has the masterpage link disabled.
Hope that all makes sense.
Lisa
Eagles may soar, but weasels aren't sucked into jet engines.
Warning! Loose nut behind the keyboard.
Re: Can I exclude a master page from a topic?
Hi, I want to do this, too, but unfortunately I do not understand Lisa's instructions.
The HTML tag in the topic looks like this:
<html xmlns:MadCap="http://www.madcapsoftware.com/Schemas/MadCap.xsd" MadCap:priority="3" MadCap:fileTags="RoboHelpStatus.Ready for Review,RoboHelpCheckList.Ran Smart Index" MadCap:lastBlockDepth="5" MadCap:lastHeight="484" MadCap:lastWidth="1168">
So could someone please tell me how to edit this so that the master page is not used for this topic?
Thanks!
The HTML tag in the topic looks like this:
<html xmlns:MadCap="http://www.madcapsoftware.com/Schemas/MadCap.xsd" MadCap:priority="3" MadCap:fileTags="RoboHelpStatus.Ready for Review,RoboHelpCheckList.Ran Smart Index" MadCap:lastBlockDepth="5" MadCap:lastHeight="484" MadCap:lastWidth="1168">
So could someone please tell me how to edit this so that the master page is not used for this topic?
Thanks!
Re: Can I exclude a master page from a topic?
To prevent the topic from using the default master page, create a different master page and assign that to the topic.
Details here:
kb.madcapsoftware.com/Default.htm#cshid=FMP1001F
Details here:
kb.madcapsoftware.com/Default.htm#cshid=FMP1001F