Skip to main content
Inspiring
November 9, 2016
Answered

Manually Add Word docs as "linked documents"

  • November 9, 2016
  • 1 reply
  • 749 views

On a network drive within the folder structure, there are 173 folders that have Word documents that I want to link from the network to my RoboHelp project. Is there a way to add these documents as linked documents all at once without navigating to each of the 173 folders?

    This topic has been closed for replies.
    Correct answer prhmusic2

    Well, you can edit the rhWordDocs.apj file if you want to do it below the surface. It's just an XML and you can create links that way.


    The following is a snippet from my rhWordDocs.apj file. For each of the Word documents I'm linking to, the "template_name" value is blank. Where is that set within RoboHelp?

    <word_doc>

    <file_name>S:\Disaster Recovery Planning\_____DisasterRecoveryDocsSingleFolder\Refresh  MDR from REL and wipe.docx</file_name>

    <settingsflag>0</settingsflag>

    <afolder>Refresh  MDR from REL and wipe</afolder>

    <pfolder></pfolder>

    <type>2</type>

    <location>2</location>

    <flags>1073741824</flags>

    <cshstring>TopicAlias</cshstring>

    <authorstatus>0</authorstatus>

    <status>3</status>

    <template_name></template_name>

    <cbt_mode>2</cbt_mode>

    <buildtags></buildtags>

    <toc_assoc>0</toc_assoc>

    <index_assoc>0</index_assoc>

    <glossary_assoc>0</glossary_assoc>

    <override_flag>0</override_flag>

    <gen_files>

    <genfile>

    <filename>Refresh  MDR from REL and wipe\Refresh__MDR_from_REL_and_wipe.css</filename>

    <typeid>1</typeid>

    <status>0</status>

    <chksm>0</chksm>

    </genfile>

    <genfile>

    <filename>Refresh  MDR from REL and wipe\Refresh__MDR_from_REL_and_wipe.htm</filename>

    <typeid>0</typeid>

    <status>0</status>

    <chksm>0</chksm>

    </genfile>

    </gen_files>

    <pattern>&lt;$paratext&gt;</pattern>

    <asciionlyfilenames>0</asciionlyfilenames>

    </word_doc>

    1 reply

    Willam van Weelden
    Inspiring
    November 11, 2016

    Are you up to some scripting? With a script, you can traverse all directories and link every word document that you find.

    If I had to make such a script, it would probably take me 2 hours. So unless you want to do this exercise more than once, you may be better of going through the folders manually.

    prhmusic2Author
    Inspiring
    November 11, 2016

    I was hoping to edit a config file like when I used to edit project files with Notepad in my WinHelp projects years ago. I think after I have the Word docs linked and after I have updated RoboHelp to create HTML files for each, I will look at what the .fpj files look like. Maybe I can manipulate them with some find / replace actions. And you’re right – this is a one-time task so looking @ the FPJ file will be a “when I have time” kind of fun project.

    Thanks

    Paul

    Willam van Weelden
    Inspiring
    November 11, 2016

    Well, you can edit the rhWordDocs.apj file if you want to do it below the surface. It's just an XML and you can create links that way.