Hi all,
I've got a TOC in my Flare project that is linked to the source files. I must have accidentally checked the "Link Generated Files To Source Files" checkbox when I imported from FM...
Can anyone tell me if there's a way to undo this without re-importing?
Thank you,
Unlink to Imported Files Source
-
- Propeller Head
- Posts: 76
- Joined: Tue May 12, 2009 2:07 pm
- Location: California's Central Valley
Unlink to Imported Files Source
Jennifer
"Whenever you find yourself on the side of the majority, it is time to pause and reflect." -- Mark Twain
"Whenever you find yourself on the side of the majority, it is time to pause and reflect." -- Mark Twain
-
- Propellus Maximus
- Posts: 1238
- Joined: Mon Feb 27, 2006 5:56 am
- Location: Melbourne, Australia
Re: Unlink to Imported Files Source
There is a way but only if you are happy to edit the code.
Open the TOC in the text editor. The second line should have a reference to the source file - remove that reference.
For example, in the following snippet of code, you would remove the sourceDocument=="C:\temp\test_Mar_2011.docx" bit - make sure you don't remove the greater than/less than symbols.
which should then read:
Open the TOC in the text editor. The second line should have a reference to the source file - remove that reference.
For example, in the following snippet of code, you would remove the sourceDocument=="C:\temp\test_Mar_2011.docx" bit - make sure you don't remove the greater than/less than symbols.
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<CatapultToc Version="1" sourceDocument="C:\temp\test_Mar_2011.docx">
<TocEntry Title="xxx ...
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<CatapultToc Version="1">
<TocEntry Title="xxx ...
Margaret Hassall - Melbourne
-
- Propeller Head
- Posts: 76
- Joined: Tue May 12, 2009 2:07 pm
- Location: California's Central Valley
Re: Unlink to Imported Files Source
Hi Margaret,
I'm not sure why I never got a notification that you responded to my post. Thank you for taking the time to post that response. I am not too afraid to make a simple change like that.
I'm not sure why I never got a notification that you responded to my post. Thank you for taking the time to post that response. I am not too afraid to make a simple change like that.
Jennifer
"Whenever you find yourself on the side of the majority, it is time to pause and reflect." -- Mark Twain
"Whenever you find yourself on the side of the majority, it is time to pause and reflect." -- Mark Twain
Re: Unlink to Imported Files Source
THANK YOU! This answered my question today. A quick search and replace later, and I'm finished with the pesky linked documents that remained even though I'd deleted the Import file.wclass wrote:There is a way but only if you are happy to edit the code.
Open the TOC in the text editor. The second line should have a reference to the source file - remove that reference.
For example, in the following snippet of code, you would remove the sourceDocument=="C:\temp\test_Mar_2011.docx"
Thanks
Victoria Clarke
-
- Sr. Propeller Head
- Posts: 373
- Joined: Tue Apr 23, 2013 3:19 am
- Location: The Netherlands, Amsterdam Area
Re: Unlink to Imported Files Source
If you don't want to fiddle with the source, this should work as well:
In general, a way to unlink an item in Flare is to edit it. Once you try to edit a linked item, Flare will come up with a dialog giving you the options:
- Continue with operation
- Remove the link and continue with operation
- Remove the link and cancel the operation
The last option will remove the link, but not change your item.
For your TOC, you could shift an topic entry to a different place to force the dialog to appear.
In general, a way to unlink an item in Flare is to edit it. Once you try to edit a linked item, Flare will come up with a dialog giving you the options:
- Continue with operation
- Remove the link and continue with operation
- Remove the link and cancel the operation
The last option will remove the link, but not change your item.
For your TOC, you could shift an topic entry to a different place to force the dialog to appear.
Using Flare 10.2 and Flare 11 on Win 7
-
- Propeller Head
- Posts: 23
- Joined: Tue May 03, 2016 12:04 pm
- Location: Simi Valley, CA
Re: Unlink to Imported Files Source
This didn't work. I deleted the source files and edited that line but the link was still there.wclass wrote:There is a way but only if you are happy to edit the code.
Open the TOC in the text editor. The second line should have a reference to the source file - remove that reference.
For example, in the following snippet of code, you would remove the sourceDocument=="C:\temp\test_Mar_2011.docx" bit - make sure you don't remove the greater than/less than symbols.which should then read:Code: Select all
<?xml version="1.0" encoding="utf-8"?> <CatapultToc Version="1" sourceDocument="C:\temp\test_Mar_2011.docx"> <TocEntry Title="xxx ...
Code: Select all
<?xml version="1.0" encoding="utf-8"?> <CatapultToc Version="1"> <TocEntry Title="xxx ...
This is the only thing that's working. Unfortunately, I have dozens of files that need to be fixed.Lydia wrote:If you don't want to fiddle with the source, this should work as well:
In general, a way to unlink an item in Flare is to edit it. Once you try to edit a linked item, Flare will come up with a dialog giving you the options:
- Continue with operation
- Remove the link and continue with operation
- Remove the link and cancel the operation
The last option will remove the link, but not change your item.
For your TOC, you could shift an topic entry to a different place to force the dialog to appear.
Brian
Flare ( ) v12, Windows 10