What you only need is to apply a condition to the text you want to see into the sidebar!
After, play a script! [ … that won't use a variable, acting as a single char! ]
This sounds perfect but I've never applied a condition before... what do I do? And where can I grab the script to do this? Thanks in advance.
There is no need for a script. Simply make a new condition, select some text, and apply the condition.
But honestly, I'm not sure how a condition would help you. Conditions let you selectively show and hide text. But I think a better solution would be a plugin. Power Headers by in-Tools. It has a dizzying number of features, bet here are the two that I think will solve your problem.
- Flexible Source Styles: Power Headers includes an option to base headers on paragraph style, character style, or both (a character style within a specific paragraph style).
- Text Composition:Power Headers keeps the headers as live text, the text is composed by InDesign’s standard text composer. Variables on the other hand are treated as a single character and cannot break across lines. With Power Headers you can create multiple line headers with ease! Additionally, since the headers are simple text, nested styles work as expected.
That is very cool!
I’ve never used conditional text in that way. Very clever!