Hello and Greetings
Apologies, again, for the neophyte nature of this question.
Upon the completion of a build, the Open Build Log gremlins behind Flare all blurted out a warning "Missing Linked Stylesheet File" with a link following said warning. It appears that, mysteriously, the/a linked table style has disappeared (meaning that the link that the style "points to" [for the lack of a better term] has been broken). And this is true: despite (ignored) exhortations from various colleagues, we moved the file from one folder location to another which has, ineluctably, broken the style links.
I am certain that this topic has been addressed multiple times. However, in my haste, I was unable to apply any of the recommendations listed herein. How does one overcome this dreaded "missing link" issue that is plaguing our files? How do I apply the proper style ancestry to our tables so the link warning disappears? The missing link paradox is driving some of our members into a permanent state of madness.
Ah...and to clarify, the file exists in my Content explorer. Ultimately, I'm trying to redirect the style link to that style (if that makes any sense).
Thank you in advance, Flare Pros, Doyens and Wizzes.
"Missing Linked Stylesheet File" Message in Build Log
-
- Propeller Head
- Posts: 32
- Joined: Tue Dec 01, 2020 2:22 pm
-
- Sr. Propeller Head
- Posts: 248
- Joined: Thu May 24, 2018 3:11 pm
- Location: Queensland, Australia
Re: "Missing Linked Stylesheet File" Message in Build Log
Hi,
There are several ways to do this...
You could put the tablestyle back in the location linked to from the affected topic (usually somewhere inside Content/Resources/TableStyles), then use the Content Explorer inside Flare to move the file to your preferred location. This should update all links used in the topics and stop the warning being issued. Usually best to move files using Flare as it is pretty good at updating all links throughout the project. If you don't know the topic(s) affected, do a Find in Flare (Find in source code option selected) for the stylesheet name.
Or you could use Flare Find/Replace in source code (or a text editor, a command line tool or python script or something else) to search and replace in all project files and change:
<link href="old/path/yourstylesheetname.css" rel="stylesheet" MadCap:stylesheetType="table" />
to point to the destination of the file.
A quick find all "old/path/yourstylesheetname.css" in all files in the project can be used to check that all locations have been updated correctly. I'm a firm believer in using a good text editor alongside Flare for find/replace issues or to check syntax of files when issues arise, but that's the way my mind works.
Rob
There are several ways to do this...
You could put the tablestyle back in the location linked to from the affected topic (usually somewhere inside Content/Resources/TableStyles), then use the Content Explorer inside Flare to move the file to your preferred location. This should update all links used in the topics and stop the warning being issued. Usually best to move files using Flare as it is pretty good at updating all links throughout the project. If you don't know the topic(s) affected, do a Find in Flare (Find in source code option selected) for the stylesheet name.
Or you could use Flare Find/Replace in source code (or a text editor, a command line tool or python script or something else) to search and replace in all project files and change:
<link href="old/path/yourstylesheetname.css" rel="stylesheet" MadCap:stylesheetType="table" />
to point to the destination of the file.
A quick find all "old/path/yourstylesheetname.css" in all files in the project can be used to check that all locations have been updated correctly. I'm a firm believer in using a good text editor alongside Flare for find/replace issues or to check syntax of files when issues arise, but that's the way my mind works.
Rob
Re: "Missing Linked Stylesheet File" Message in Build Log
Further to the excellent suggestion above, there might be snippets that also have the reference link included. Try the following:
1. Rather than moving the offending file, use Flare's Content Explorer to copy it into the path that Flare is complaining about in, recreating any folders necessary
2. In Content Explorer, right-click the copied file and select "View Links".\
3. Note all files that appear in the "Linked From" part of the Link Viewer window - these are the ones generating the errors
4. Open these one by one and check the <Link href= ...> lines in the <head> section at top
It's highly likely that you will need to add or remove "../" to make the paths correct, especially if you copy/paste blocks of code using the text editor, which I do all the time
Once paths are sorted (i.e. Link Viewer reports "no incoming links") and you can build without error, you can use Content Explorer to delete the copied file and any folders.
1. Rather than moving the offending file, use Flare's Content Explorer to copy it into the path that Flare is complaining about in, recreating any folders necessary
2. In Content Explorer, right-click the copied file and select "View Links".\
3. Note all files that appear in the "Linked From" part of the Link Viewer window - these are the ones generating the errors
4. Open these one by one and check the <Link href= ...> lines in the <head> section at top
It's highly likely that you will need to add or remove "../" to make the paths correct, especially if you copy/paste blocks of code using the text editor, which I do all the time
![Smile :)](./images/smilies/icon_smile.gif)
Once paths are sorted (i.e. Link Viewer reports "no incoming links") and you can build without error, you can use Content Explorer to delete the copied file and any folders.