Stylesheet issue

This forum is for all Flare issues not related to any of the other categories.
Post Reply
rbr00x
Propeller Head
Posts: 13
Joined: Fri May 13, 2011 9:19 am

Stylesheet issue

Post by rbr00x »

I have imported an old RoboHelp project, and for some reason there are 3 versions of my stylesheet in use in the project. I have specified a stylesheet in my WebHelp target, but I can't figure out how to make it link to my topics. When I try to change the link from the topics themselves I get a message that I can't do it because there is a master stylesheet. I'm not sure how to get one stylesheet applied to all topics.
Andrew
Propellus Maximus
Posts: 1237
Joined: Fri Feb 10, 2006 5:37 am

Re: Stylesheet issue

Post by Andrew »

rbr00x wrote:I have imported an old RoboHelp project, and for some reason there are 3 versions of my stylesheet in use in the project. I have specified a stylesheet in my WebHelp target, but I can't figure out how to make it link to my topics. When I try to change the link from the topics themselves I get a message that I can't do it because there is a master stylesheet. I'm not sure how to get one stylesheet applied to all topics.
I'm not really clear on what your goal is, but if it's the same stylesheet applied to all topics, you can set up a master stylesheet at the project level (Project > Project Properties > Defaults), at the target level (Project Organizer > Targets > YourTarget > General). If you set one up at the project level, that stylesheet will automatically apply to *all* topics in your project. If you set one up at the target level, it will automatically apply that stylesheet to *all* your topics when you build that target. If you specify neither project nor target master stylesheet, you must apply it manually to each topic (you can multi-select your topics in the Content Explorer or File List panel and apply a stylesheet using the Properties dialog, but this ONLY works if you do NOT have a master stylesheet applied).

It sounds like you want all your topics to be one stylesheet, but you also seem to want to select stylesheets individually. Can you clarify what you are trying to do?
Flare v6.1 | Capture 4.0.0
rbr00x
Propeller Head
Posts: 13
Joined: Fri May 13, 2011 9:19 am

Re: Stylesheet issue

Post by rbr00x »

I want to apply one stylesheet to all my topics. This is a legacy project that came with its own stylesheets already applied. I can't figure out how to override the old stylesheets. I have applied a master stylesheet at the project leve and the target level but I'm still seeing the old styles.
Andrew
Propellus Maximus
Posts: 1237
Joined: Fri Feb 10, 2006 5:37 am

Re: Stylesheet issue

Post by Andrew »

rbr00x wrote:I want to apply one stylesheet to all my topics. This is a legacy project that came with its own stylesheets already applied. I can't figure out how to override the old stylesheets. I have applied a master stylesheet at the project leve and the target level but I'm still seeing the old styles.
Are you seeing the old stylesheets' styles in the Flare XML Editor, the built output, or both?
Flare v6.1 | Capture 4.0.0
LTinker68
Master Propellus Maximus
Posts: 7247
Joined: Thu Feb 16, 2006 9:38 pm

Re: Stylesheet issue

Post by LTinker68 »

You might want to double-check that the stylesheet link ref isn't hard coded in the topics. I thought importing an RH project into Flare would strip out those references, but perhaps not, or perhaps it didn't work when you did the import for some reason.

You might also want to open the stylesheet files and make sure there aren't any @import lines pointing to those other stylesheets.

If all else fails, you could do a find in Flare, set to search in source code, and look for references to those stylesheets by name.
Image

Lisa
Eagles may soar, but weasels aren't sucked into jet engines.
Warning! Loose nut behind the keyboard.
rbr00x
Propeller Head
Posts: 13
Joined: Fri May 13, 2011 9:19 am

Re: Stylesheet issue

Post by rbr00x »

Thank you for your help. It seems that after I closed the project and reopened it, the master stylesheet "took."
LTinker68
Master Propellus Maximus
Posts: 7247
Joined: Thu Feb 16, 2006 9:38 pm

Re: Stylesheet issue

Post by LTinker68 »

Oh, yes, didn't think of that. Actually, if you had a topic open in the XML Editor and made changes like that (specifying a different stylesheet), then pressing F5 should force the topic to reload with the new stylesheet.
Image

Lisa
Eagles may soar, but weasels aren't sucked into jet engines.
Warning! Loose nut behind the keyboard.
Post Reply