MadCap Flare Tricks: Using Variables in your CSS

MadCap Flare (v 2019) now supports the use of variables (also known as custom properties) in the css. This is a great enhancement, as it allows users to keep their documentation look-and-feel consistent. It also saves time, since you can use an attribute variable in several styles and define it only once (in the root … Continue reading MadCap Flare Tricks: Using Variables in your CSS

MadCap Flare Tricks: How to Show/Hide a Background Image via a Condition

My team has been confronted with a new challenge this week. We document several products in the same MadCap Flare project, some of them are publicly accessible and others are for internal use, and need to have an "Internal" background image. The background image is defined in the "body" element of our css: body { … Continue reading MadCap Flare Tricks: How to Show/Hide a Background Image via a Condition

MadCap Flare Tricks: How to Open External Links in a new Window by Default

I'd like to share with you a script I've found on the MadCap Forums that you can use to open external links (<a href>) by default in a new target frame. To do so, you can add the script below to the body part of your page layout (.flmsp): <script type="text/javascript">/*<![CDATA[*/ $("a[href^='https://']").attr('target="_blank"');/*]]>*/</script> Note that I've … Continue reading MadCap Flare Tricks: How to Open External Links in a new Window by Default