xrefs without no links

This forum is for all Flare issues related to styles, stylesheets and XML.
Post Reply
techwrite_BC
Propeller Head
Posts: 11
Joined: Mon Jan 26, 2015 8:43 am
Location: Germany

xrefs without no links

Post by techwrite_BC »

Hello,

I'd like to repeat a headline (h2 or h3, it depends) in the header of a table. A variable would be perfect, but the header I refer to changes from table to table, so this is not a possible solution for me.
I tried to set a bookmark at the h2 or h3 and refer to it with an xref in the table header which is

Code: Select all

MadCap|xref.InstallTab_Header
	{
		mc-format: '{paratext}';
		color: #000000;
		text-decoration: none; }
The result looks as it should, like this:
xref.png
Now I'd like to remove the link (in PDF and online output), e.g., the link from the header to the heading should neither be clickable nor should the mouse pointer change when hovering. Anyone who can help?
-Stefan
You do not have the required permissions to view the files attached to this post.
Nita Beck
Senior Propellus Maximus
Posts: 3672
Joined: Thu Feb 02, 2006 9:57 am
Location: Pittsford, NY

Re: xrefs without no links

Post by Nita Beck »

I think you can do this with a condition. (I'm going on memory, so hope I'm about to give you enough to go on.) Create a condition that you can then apply to the xref in the table. When you apply it to the xref, you can specific that the action you want Flare to take is to "Unbind" rather than "Remove" the conditioned content. That way, Flare will leave the text of the xref, but it will "unbind" it from the underlying coding, that is, the xref will no longer be a working "link" in the output. Oh, and be sure to have the target exclude that condition.
Nita
Image
RETIRED, but still fond of all the Flare friends I've made. See you around now and then!
NorthEast
Master Propellus Maximus
Posts: 6426
Joined: Mon Mar 05, 2007 8:33 am

Re: xrefs without no links

Post by NorthEast »

That'll kind of work, however it will use the placeholder text that is in the topic, and won't regenerate the xref text.
So, if you changed the heading, you'd have to update the xref text yourself - either by typing it in, or using Tools > Update cross-references.
Nita Beck
Senior Propellus Maximus
Posts: 3672
Joined: Thu Feb 02, 2006 9:57 am
Location: Pittsford, NY

Re: xrefs without no links

Post by Nita Beck »

Dave Lee wrote:That'll kind of work, however it will use the placeholder text that is in the topic, and won't regenerate the xref text.
So, if you changed the heading, you'd have to update the xref text yourself - either by typing it in, or using Tools > Update cross-references.
Dave, I'll go test this, but I don't think you're right. I think that Flare will resolve the xref text just fine, in the event that the heading in the destination topic were to change. But..."when in doubt, check it out!", so I'll go test...
Nita
Image
RETIRED, but still fond of all the Flare friends I've made. See you around now and then!
NorthEast
Master Propellus Maximus
Posts: 6426
Joined: Mon Mar 05, 2007 8:33 am

Re: xrefs without no links

Post by NorthEast »

Nita Beck wrote:Dave, I'll go test this, but I don't think you're right. I think that Flare will resolve the xref text just fine, in the event that the heading in the destination topic were to change. But..."when in doubt, check it out!", so I'll go test...
I checked it out before posting (in v11) - it doesn't resolve the xref, it uses the placeholder text in the topic.
Nita Beck
Senior Propellus Maximus
Posts: 3672
Joined: Thu Feb 02, 2006 9:57 am
Location: Pittsford, NY

Re: xrefs without no links

Post by Nita Beck »

I still haven't had a chance to test it, but if your test results aren't an anomaly, then I consider the current behavior a bug. Flare should still update the text of the xref before unbinding the underlying coding based on the unbind setting of the condition...

UPDATE: Dave, I can confirm your results in both Flare 10 and Flare 11, that the text of the xref doesn't get updated automatically. I personally consider this a bug and will submit a bug report.
Nita
Image
RETIRED, but still fond of all the Flare friends I've made. See you around now and then!
Post Reply