My docs have a lot of internal-only content. We have this styled to not appear in PDF outputs, which are customer-facing.
In html5 output, the internal text (for internal targets) is styled to appear as black text in a red box; it is hidden/does not appear in external targets.
I also need to generate internal-only PDF reviews, where that content is visible, and called out visibly as internal to reviewers.
How can I get my internal content to appear in colored text in review PDFs? I'm not sure how to layer the conditions/classes/etc.
Thanks folks!
Alternate colors for different pdf targets
-
- Propeller Head
- Posts: 27
- Joined: Tue Apr 16, 2013 11:55 am
-
- Senior Propellus Maximus
- Posts: 2632
- Joined: Wed Apr 14, 2010 8:01 am
- Location: Surrey, UK
Re: Alternate colors for different pdf targets
How have you styled your internal only content? Just with a condition? Or with a specific style?
Started as a newbie with Flare 6.1, now using Flare 2023.
Report bugs at http://www.madcapsoftware.com/bugs/submit.aspx.
Request features at https://www.madcapsoftware.com/feedback ... quest.aspx
Report bugs at http://www.madcapsoftware.com/bugs/submit.aspx.
Request features at https://www.madcapsoftware.com/feedback ... quest.aspx
-
- Propeller Head
- Posts: 27
- Joined: Tue Apr 16, 2013 11:55 am
Re: Alternate colors for different pdf targets
we have defined a general.internal condition.
-
- Senior Propellus Maximus
- Posts: 2632
- Joined: Wed Apr 14, 2010 8:01 am
- Location: Surrey, UK
Re: Alternate colors for different pdf targets
I thought that'd be what you've done. To build on that, you might want to add a generic style, e.g. .INTERNAL, which includes that condition but also contains the colours you want. For example, you could have this in your stylesheet:
.INTERNAL
{
background: #DDE57F;
mc-conditions: general.Internal;
}
1. When you are working in your topic, rather than just applying the condition to the stuff you want to be internal only, apply the generic style. So if you have a phrase in a sentence that you want to be internal only, highlight the phrase and then apply .INTERNAL to it, resulting in this:
<p>This is a<span class="INTERNAL">n internal</span> bit of text.</p>
or
<p class="INTERNAL">This is an internal-only paragraph.</p>
2. In your targets, for client-facing targets exclude the "general.Internal" condition, but don't exclude it for your internal targets.
3. Generate an internal target and you should see that your internal-only stuff that you applied the .INTERNAL attribute to appears with a rather rancid green background. (If you want to have the font changed as well, add the appropriate bits to your .INTERNAL generic style in your stylesheet.
That should sort you out from now on, but you'll need to work through your existing material to apply the .INTERNAL style, rather than just the general.Internal condition.
.INTERNAL
{
background: #DDE57F;
mc-conditions: general.Internal;
}
1. When you are working in your topic, rather than just applying the condition to the stuff you want to be internal only, apply the generic style. So if you have a phrase in a sentence that you want to be internal only, highlight the phrase and then apply .INTERNAL to it, resulting in this:
<p>This is a<span class="INTERNAL">n internal</span> bit of text.</p>
or
<p class="INTERNAL">This is an internal-only paragraph.</p>
2. In your targets, for client-facing targets exclude the "general.Internal" condition, but don't exclude it for your internal targets.
3. Generate an internal target and you should see that your internal-only stuff that you applied the .INTERNAL attribute to appears with a rather rancid green background. (If you want to have the font changed as well, add the appropriate bits to your .INTERNAL generic style in your stylesheet.
That should sort you out from now on, but you'll need to work through your existing material to apply the .INTERNAL style, rather than just the general.Internal condition.
Started as a newbie with Flare 6.1, now using Flare 2023.
Report bugs at http://www.madcapsoftware.com/bugs/submit.aspx.
Request features at https://www.madcapsoftware.com/feedback ... quest.aspx
Report bugs at http://www.madcapsoftware.com/bugs/submit.aspx.
Request features at https://www.madcapsoftware.com/feedback ... quest.aspx
-
- Propeller Head
- Posts: 27
- Joined: Tue Apr 16, 2013 11:55 am
Re: Alternate colors for different pdf targets
Thank you, I'll work through that.
And thanks for the text version! (as we can't access the editors due to using CSS exceeding their support! lol)
And thanks for the text version! (as we can't access the editors due to using CSS exceeding their support! lol)
-
- Senior Propellus Maximus
- Posts: 2632
- Joined: Wed Apr 14, 2010 8:01 am
- Location: Surrey, UK
Re: Alternate colors for different pdf targets
I prefer to work in my CSS as text - I very rarely do anything at all in the Flare CSS editor!Lance_Moore wrote:Thank you, I'll work through that.
And thanks for the text version! (as we can't access the editors due to using CSS exceeding their support! lol)
Hope the suggestion helps.
Started as a newbie with Flare 6.1, now using Flare 2023.
Report bugs at http://www.madcapsoftware.com/bugs/submit.aspx.
Request features at https://www.madcapsoftware.com/feedback ... quest.aspx
Report bugs at http://www.madcapsoftware.com/bugs/submit.aspx.
Request features at https://www.madcapsoftware.com/feedback ... quest.aspx