File name changes in reusable components

Post here questions and problems related to editing and publishing DITA content.
verostarry
Posts: 17
Joined: Wed Jul 21, 2021 9:39 pm

File name changes in reusable components

Post by verostarry »

Hello,

I'm facing a few issues updating links, especially for reusable components.

As an overall question for all types of files, when we rename files, is there a way to make the references to those files in ditamaps, other topics, etc. auto update? What we're currently doing is:

1. rename a file
2. go into any ditamap it's referenced in, remove the old reference, which now appears as a broken link with a red underline, and add the new reference by copy and pasting the file with its new name

We're encountering an additional issue when we try to do this with with reusable component files, which are also all referenced in a ditamap. When renaming these files, and cleaning up the ditamap references to go to the new names, our build breaks. Even for files that aren't used anywhere else other than the ditamap. This is the error it gives:

Failed to run pipeline: [DOTX008E][ERROR] File 'file:/Users/user/Desktop/workplace/TC/src/TestDocs/reusable-components/61-10-01-202.dita'

Please advise on best practices and potentially issues, if you see them.

Thank you,
Veronica
Radu
Posts: 9436
Joined: Fri Jul 09, 2004 5:18 pm

Re: File name changes in reusable components

Post by Radu »

Hi Veronica,

We this feature in Oxygen named "Main Files" which allows you to tell Oxygen which are your main DITA Maps and when you move or rename resources in the Oxygen project view the references to those resources will be automatically updated:

https://www.oxygenxml.com/doc/versions/ ... files.html

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
verostarry
Posts: 17
Joined: Wed Jul 21, 2021 9:39 pm

Re: File name changes in reusable components

Post by verostarry »

Hi Radu,

Main files works perfectly for our use case - thanks very much!

Cheers,
Veronica
Post Reply