This content has been marked as final. Show 7 replies
Hi Lena. If you right click on the template file in windows explorer and select the properties, have you permission to edit it? Just wondering if it has been set to read only.
Thanks for your answer. Yes I do have permission to edit this template.
Have you tried copying the template from its original location? Also try and copy a different template (set one up if you haven't got one) and see if the same problem occurs.
This is a quirk of RoboHelp.
You must import a template from someplace outside the project folder.
My guess is, RH thinks the file is already in the project, so it doesn't bother to add it to the database table where it keeps track of templates.
Hi Colum nad Harvey,
I have just made the recommended test: copied a different template to my project. The result: the new template does indeed show in the Template. This is interesting. This tells me, Harvey, that Robohelp doesn't bother to add it to the database table, like you said. The questing is, how I can remove the template from the my project and the attach it again?
I think you'll have to put on a cowboy hat and try the following. Close your project, make a backup, find the rhtemplate.apj file located in the project's directory and open the file with Notepad or something similar. There you should find a reference to the imported template file. Delete everything from the <file> XML tag to the </file> XML tag. Close the file saving the change and reopen your RH project. You should then be able to reimport the template from the original location.
I agree with Colum's advice.
Normally. when you delete a template from the RH explorer, you'll be told that this will remove all references to the header and footer in all topics. The template disappears from the list. HOWEVER, the .htt file remains in the project.
If RH has properly kept track of things, you can re-import it from the project folder.
If you try to re-import a template with the same name from somewhere else, RH may object.
RH can get terribly confused if you add or delete files in the Windows Explorer rather than within RH. More so when the project is open, but even when RH is not running, you are taking your chances when you meddle with Mother RH.
That's when you have to resort to Colum's suggestion to use brute force on the apj file. Failing that, you may need to go into the cpd file with MS Access and find a table to fix.