We have a bit of javascript in the head of each of our topics (being compiled into HTML Help/CHMs). This is used for adding additional functionality, and contains links to other topics that are called in a uniform way. However, we are working on multiple versions of the release within one project, so the links on a couple of topics have changed. I assumed that I could conditionalize the javascript block so it works one way in the existing version, and another way in the new version (these conditions are already working for the new text in the topic). That does not seem to be the case, however. Both are being included (per View Source after the build), and the second one is being used. We could have sworn this was working earlier this month, but fails now.
Can conditions not be applied to scripts at all, or is it just an issue with conditions in the head instead of in the body? Here is what I tried:
Code: Select all
<head>
<script type="text/javascript" MadCap:conditions="Version Control.OldVersion">
//my script
</script>
<script type="text/javascript" MadCap:conditions="Version Control.NewVersion">
//my script
</script>
</head>
We are using both Flare 6 and 7, depending on the workstation, both with the latest updates. Same issue on both.