Cross references: way to change style in case ref is removed

This forum is for all Flare issues related to PDF, eBook, Microsoft Word, Adobe FrameMaker, XPS, and XHTML book targets.

Cross references: way to change style in case ref is removed

Postby siskamoens on Thu Jun 19, 2008 2:11 am

I have a help project that exists both in Context Sensitive Help form as in Word (printed to pdf) form, and it includes a "What's new" topic that is packed with cross-reference links to the associated topics in the Help.
However some topics are only included in the CSH and not in the Print version, so the cross-reference links that correspond to these topics are not resolved in the print version. No problem with that, but what annoys me is that the link style is not removed as well. The non-working cross-reference links are still blue and underlined in the Word output, even though they don't lead anywhere.

Does anyone have an idea how to make the "link" style to disappear along with the link itself when outputting to Word?
siskamoens
Propeller Head
 
Posts: 85
Joined: Wed Mar 21, 2007 3:01 am
Location: Belgium

Re: Cross references: way to change style in case ref is removed

Postby SteveS on Thu Jun 19, 2008 3:27 pm

Can you apply a screen only conditional tag to the link?
Image
Steve
Life's too short for bad coffee, bad chocolate, and bad red wine.
SteveS
Propellus Maximus
 
Posts: 1989
Joined: Tue Mar 07, 2006 5:06 pm
Location: Adelaide, far side of the world ( 34°56'0.78\"S 138°46'44.28\"E).

Re: Cross references: way to change style in case ref is removed

Postby siskamoens on Fri Jun 20, 2008 12:06 am

I don't think that will help, because I would like to keep the text, and only remove the link style (blue-underlined). I believe a condition tag would simply hide the whole word + link.
And I'm not eager to start duplicating every cross-reference I have (one for print, one for web)...I have hundreds of them.
siskamoens
Propeller Head
 
Posts: 85
Joined: Wed Mar 21, 2007 3:01 am
Location: Belgium

Re: Cross references: way to change style in case ref is removed

Postby LTinker68 on Fri Jun 20, 2008 8:36 am

siskamoens wrote:The non-working cross-reference links are still blue and underlined in the Word output, even though they don't lead anywhere.

Did you try specifying a style for the <a> tag in the print medium to not be blue or underlined? Or the appropriate pseudo styles under the cross-ref tag. (I don't have Flare open at the moment and I don't remember if the xrefs pull their styles from the main topic links or from a xref-specific tag.)
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: Cross references: way to change style in case ref is removed

Postby SteveS on Fri Jun 20, 2008 10:20 pm

See http://forums.madcapsoftware.com/viewtopic.php?f=13&t=6496 for a quick discussion on formatting links and xrefs :)
Image
Steve
Life's too short for bad coffee, bad chocolate, and bad red wine.
SteveS
Propellus Maximus
 
Posts: 1989
Joined: Tue Mar 07, 2006 5:06 pm
Location: Adelaide, far side of the world ( 34°56'0.78\"S 138°46'44.28\"E).

Re: Cross references: way to change style in case ref is removed

Postby siskamoens on Mon Jun 23, 2008 12:11 am

Thanks Lisa and Steve, but I'm not looking to style all my a hrefs or xrefs in the same way in print output.

Let me make it clear again:

- xrefs must be blue and underlined in online output, always
- xrefs with an active link should always be blue and underlined in print output
- xrefs in print output that had their link removed because the referenced topic is not included in the print output should be "normally" styled, meaning without the blue-underlined style

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

Re: Cross references: way to change style in case ref is removed

Postby LTinker68 on Mon Jun 23, 2008 8:11 am

siskamoens wrote:- xrefs in print output that had their link removed because the referenced topic is not included in the print output should be "normally" styled, meaning without the blue-underlined style

Hmmm.... In the print medium (or maybe the default medium), try setting the base xref style -- not one of the pseudo-classes -- to a normal font appearance without bold, blue underline, etc. Theoretically, if there's no <a> tag in the output then it should revert to that plain xref style, but if there is an <a> tag, then it should use the a:link style. I'm not sure that'll work, though -- it may be beyond Flare -- because it depends at what point in the process the <a> tag is stripped out. If the style is applied first then the tag stripped, then it would use the a:link style, but if the tag is stripped first then it may use the plain xref style. Give it a try anyway, and let use know if it works. If it doesn't, then I suggest you submit a feature request to MadCap.
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


Return to Printed Documentation Targets

Who is online

Users browsing this forum: No registered users and 3 guests