Apply style automatically when a tag is condition flagged

This forum is for all Flare issues related to styles, stylesheets and XML.

Apply style automatically when a tag is condition flagged

Postby siskamoens on Tue May 06, 2008 5:40 am

Hi,

I insert comments in my topics that are only for internal use, which I mark with a condition "hidden" which is never published (excluded from every target). Now I would like to style these paragraphs automatically so that these comments are easily traced and always recognized as "comment", even when I print the topic from within the Flare preview (condition tagging is not visible there).

I now apply both the "hidden" condition and a style named "hidden" to every comment paragraph, but I would like to do both in one single step.

Any idea if it's possible to use the MadCap:conditions="Primary.Hidden" attribute in the style sheet and associate a specific style with it?

Thanks,

Siska
siskamoens
Propeller Head
 
Posts: 85
Joined: Wed Mar 21, 2007 3:01 am
Location: Belgium

Re: Apply style automatically when a tag is condition flagged

Postby LTinker68 on Tue May 06, 2008 8:06 am

I don't think there's a way to do it through the stylesheet. You could use the find-and-replace in Flare to search for all instances of the class name in the topics and then add the conditional tag (make sure you tell it to search in source code).

I like the suggestion, though. I suggest you submit a feature request to http://www.madcapsoftware.com/bugs/submit.aspx.
Image

Lisa
Eagles may soar, but weasels aren't sucked into jet engines.
Warning! Loose nut behind the keyboard.
LTinker68
Master Propellus Maximus
 
Posts: 7245
Joined: Thu Feb 16, 2006 9:38 pm

Re: Apply style automatically when a tag is condition flagged

Postby siskamoens on Wed May 07, 2008 12:14 am

Feature request is submitted.
siskamoens
Propeller Head
 
Posts: 85
Joined: Wed Mar 21, 2007 3:01 am
Location: Belgium

Re: Apply style automatically when a tag is condition flagged

Postby mattf on Thu May 08, 2008 10:12 am

This would be very useful. I too have internal comments that I have a style for (p.NoteToSelf), but sometimes I forget to then add the conditional tag that prevents the internal notes from being published. I wish it was a single step to apply both the style and the condition.
Matt F
You learn something new every day if you're not careful.
mattf
Sr. Propeller Head
 
Posts: 277
Joined: Thu Feb 09, 2006 5:35 pm
Location: Next to the window


Return to Styles, Stylesheets and XML

Who is online

Users browsing this forum: No registered users and 8 guests