Welcome to our community
It depends on what you are trying to change. Can you be more explicit about exactly what it is you are trying to do?
Helpful and Handy Links
I have a master page (previously a topic template) with code for adding a custom button bar for context-sensitive topics. It includes buttons for Contents (launching the tri-pane window), Back, and Print. This code applies to any topic that can be launched as context-sensitive Help (in a single pane). This was easy to do with WinHelp, and even HTML-Help. However, doing this for WebHelp requires custom code. Adding this code as part of the master page (previously, the topic template) seemed to be one way of applying it to multiple topics fairly easily. However, once applied, how can I update the original master page and have those changes affect existing topics? Is there a better place to include such code (hopefully in a place that RoboHelp will not "undo" with each compilation)?
Hello again Paul
Okay, so the fact you are referring to them as Master Pages would seem to imply you are using RoboHelp 8. When you edit a Master Page in this version you note that there are "Placeholders" on the page. There is a Placeholder for the Body text. You may also add other Placeholders as well as Headers and Footers.
If you inserted the button bar inside the Body placeholder, it would only be related to topics you created using the Master Page as a template. If you later changed this in some way, for example removing or adding a button, it would only be reflected in topics you later created after making the change. Topics created prior to the change will be unfazed.
You can change this behavior by inserting the element just above the Body Placeholder. When content is outside the Placeholder, it gets copied to any topic associated with the Master Page.
Helpful and Handy Links
Thanks for your reply.
I see that I am placing my button bar within a <body onload...> tag. Is there any other place I can place this code so that is "above the Body Placeholder"? I'd like to have the ability to edit this code later without having to go to each topic that was previously created.
Add your script in the header of the footer of the masterpage. Whenever you update the masterpage, all topics are automatically updated.
The easiest way to mimic the onload, is to simply place your script as the last thing in your footer. As long as no content is added after the script, the script will execute when the page is (almost) ready. Alternatively, you can use window.onload to run the script when the page is ready.\
Based on Rick's original reply, I put a Show All button in the Header area and it now appears in all topics that use my Master page. Unfortunately, to make this work I had to put the button on the same line as the company logo and product name, which is not very pleasing . Obviously I've got a layout problem to fix down the road.