Color switch for WebHelp publishing template?
Posted: Mon Feb 09, 2026 1:40 pm
Hi,
I am creating a WebHelp publishing template that should be used for two product lines. Each product line is distinguished by a certain color. I would like to use only one publishing template for both product lines and am looking for the best way to switch colors, similar to the dark mode switch.
My first attempt was to use the @product profiling attribute and pass its value to the output. However, even when I set the attribute on the top map, the attribute is not passed to a top HTML element like <html> or <body> which makes it hard to use it as a CSS switch.
Is there any other way to accomplish this? Possibly by passing a transformation parameter to the HTML output or using a macro?
Any pointers welcome.
Best regards,
Frank
I am creating a WebHelp publishing template that should be used for two product lines. Each product line is distinguished by a certain color. I would like to use only one publishing template for both product lines and am looking for the best way to switch colors, similar to the dark mode switch.
My first attempt was to use the @product profiling attribute and pass its value to the output. However, even when I set the attribute on the top map, the attribute is not passed to a top HTML element like <html> or <body> which makes it hard to use it as a CSS switch.
Is there any other way to accomplish this? Possibly by passing a transformation parameter to the HTML output or using a macro?
Any pointers welcome.
Best regards,
Frank