Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

RH HTML 8 - Merged project not working

New Here ,
Aug 16, 2010 Aug 16, 2010

Hi

I have had all manner of problems getting merged projects to work properly in RH 8 html. I have a parent project and 16 child projects. I generate all .chm files and have them all in the same folder. I then add the merged topics to my parent TOC and re-generate the parent project.  But despite the individual .chm files being the latest ( with all my updates), when I open the parent .chm and click on the TOC entries for the merged projects, it is somehow picking up 'old' files (ie minus my changes).

Also I keep reading that a "merged projects ' folder will be created in the "project file". I don't have this merged projects folder anywhere?? and if I open the .hhp file in HTML Help Workshop, under [Merge Projects] it has a huge list of a whole heap of old files that don't even exist anymore.

It may also be worth noting that the Browse Sequences that end up in my parent .chm file either don't work, don't appear, or appear several times over ( I mean some appear 2, 3 , 4 times, it is completely random). When a Browse Seqence appears more than once, only one instance of it actually works.

HAs anyone else had similar problem? Any help gratefully received, I am tearing my hair out!!

1.7K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 18, 2010 Aug 18, 2010

Does the information here help?

http://www.grainge.org/pages/authoring/merging_webhelp/merging_method_rh8.htm#mergedchms


See www.grainge.org for RoboHelp and Authoring tips

@petergrainge

Help others by clicking Correct Answer if the question is answered. Found the answer elsewhere? Share it here. "Upvote" is for useful posts.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 18, 2010 Aug 18, 2010

No it doesn't sadly. I had read this, and have done exactly as it says, but my

'parent' .chm still somehow manages to pick up old versions of the child

projects. The correct (latest) .chm files for all my merged projects are in the

same folder, but when add the merged TOC items and then regenerate the

'parent' project, the child .chm files in the folder sometimes revert to being

older ones, and sometimes they stay as the latest versions but from within the

parent .chm, old topics are displayed. Even when I remove all the merged TOC

items for the child projects, I'm left in the parent .chm with Browse Sequences

for a random selection of the child projects, even though they are no longer

'merged'. I played with this project extensively and it just doesn't make sense!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 18, 2010 Aug 18, 2010

I've had the problem of child chms still showing/returning in search results when the child chm files are in the root of the parent project. This happens automatically when you add the merge link to the toc (Do you want to copy xxx.chm into the project? Yes/No). It's not necessary for the children to exist there when you compile the parent, so I always delete the chm files out of the parent root directory. This does leave broken links in the Baggage Files folder, and from memory you might have to put a file of the same name in that folder if you ever want to remove that file from baggage.

This might also reduce the size of your parent chm - I've had my parent double in size because it's including child chms in the compile.

Note I still have the children in my output directory and this doesn't seem to cause any issues.

Amebr

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 18, 2010 Aug 18, 2010

Amber

In my merged help tutorial I state "I still recommend you generate the CHM files  to a folder outside of any  of the projects; the generate folder, in my example.  In the first page  of the wizard, make sure you generate the output from all the  projects  into that one folder or the merge will not work."

From what you say, I think that would avoid the problem. You work with merged CHMs than I do perhaps you could comment.

Saffie

You did look at the tutorial but I wonder if you tried that to see if it fixes the problem.


See www.grainge.org for RoboHelp and Authoring tips

@petergrainge

Help others by clicking Correct Answer if the question is answered. Found the answer elsewhere? Share it here. "Upvote" is for useful posts.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 19, 2010 Aug 19, 2010

I haven't had any problem when generating my chm into a sub-folder of my project, although I don't use the SSL folder layout that is the default now in RH. We generate to a folder just called Output (), and I pretty much always have an old copy of a couple of child chms in there, just to check some other merging issues we have.

The problem, if I remember correctly, is caused by the copies that RH insists on adding into Baggage Files when you first specify the child chm in the TOC, as it's that baggage file version I found physically compiled into my parent chm.

Admittedly, I haven't tried a project where I've left the Baggage Files as is, and generated to a totally different folder (e.g. c:\temp). I might try to do that in the next few days, to see if the problem is reproducible - this was a problem we dealt with quite a number of years ago, and haven't had to add any new merged chms in for a while.

Oh, speaking of other merging issues, another thing to check is hard-coded paths in the parent .hhp file. This can cause the parent chm to be looking at old child copies in a different directory. We haven't found a solution, just a work-around, which is 1. compile. 2. open hhp and remove paths from the [MERGE FILES] section. 3. recompile. Repeat each time a compile is needed.

Amber

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 19, 2010 Aug 19, 2010

Hi all

Apologies to Amebr if I'm restating what she said. Admittedly I sort of skimmed the thread.

Aside from making things a bit more simple to understand when dealing with the output, there really should be no technical reason you cannot compile CHM files and leave them in the SSL folder locations.

Merged CHM files can be tricksy. Here's the scoop. When you modify the TOC to include the references to the other CHM files, they are copied to your project folder. This means you acquire a snapshot of what they looked like at the time you modified the TOC. To my knowledge, it's a simple copy and the added CHM files aren't added to Baggage. If they were, this would mean they would be stored inside the Master CHM file. That would not only cause an enormous leap in file size, but it would also tend to defeat the purpose of the merging!

For example, perhaps you have Master, Slave One and Slave Two. At the moment you modify the Master project, Slaves One and Two are copied to the Master folder structure. But odds are that if you later modify Slave One or Slave Two, those changes will only be refelected in the SSL folders of those respective projects. They have no way of knowing they are Slaves. You would need to specifically ensure you modified the output folder location so it then points to wherever you want the Master output location to be.

CHM files work differently with merging than WebHelp and FlashHelp do. As a result, you should not expect to find a Merged Projects folder. All you have are the assorted CHM files. Generally speaking, you normally just ensure they all exist inside the same folder so the Master can find the related Slaves.

Cheers... Rick

Helpful and Handy Links

RoboHelp Wish Form/Bug Reporting Form

Begin learning RoboHelp HTML 7 or 8 moments from now - $24.95!

Adobe Certified RoboHelp HTML Training

SorcererStone Blog

RoboHelp eBooks

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 19, 2010 Aug 19, 2010

Hi all

Thanks for all the info - but I'm still stumped. I have tried generating my .chm

files to the default SSL folders, manually copying all the child chms to the SSL

folder for the master project, letting RH copy them, generating all chms to an

external folder... no matter what I do, every time I recompile the master

project it picks up random old stuff. I have checked and rechecked that my

merged TOC items are to the latest child chms...

Sometimes when I recomplie the master project, even the content in that reverts

back to a previous version, sometimes it doesn't...

I have looked at the Merged Files list in the hhp file, I have deleted this file

and started my merge from scratch, I have manually deleted some paths (some

paths are to directories on the server where any files for this project have

long since been deleted...) directly in this file, but again every time I

recompile the master project it picks up random old versions of the child chms (

and the huge list of old merged files are put back in the hhp file. Even when I

delete all chms from all locations in the folder I'm working in on my C drive,

delete all the merged TOC items from the master project, save it, and

recompile it, the list of old merged files reappears in the hhp file).

Any more thoughts gratefully received:-)

Also - I don't have a Baggage Files folder??

One more thing... If I delete ALL the files under Merged Files in the hhp file using HTML Help Workshop, it crashes

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 19, 2010 Aug 19, 2010

Hello again

Okay, any time you still see old information, it's a pretty sure bet that an old CHM is lurking about and being found. What I would do in your case is to very carefully and methodically scan ALL folders available to you for file names matching the errant CHM files. You may find yourself surprised at what you find!

Cheers... Rick

Helpful and Handy Links

RoboHelp Wish Form/Bug Reporting Form

Begin learning RoboHelp HTML 7 or 8 moments from now - $24.95!

Adobe Certified RoboHelp HTML Training

SorcererStone Blog

RoboHelp eBooks

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 19, 2010 Aug 19, 2010

I'm still currently on RH6, so I don't know if they've done away with the Baggage Files folder or possibly it's toggled by the view settings for the pod (Project Manager?). NOTE: this folder ONLY appears in RH, not on your hard disk. Any files that appear in this "folder" are actually located in the same folder as the .xpj file.

Find this folder in RH and delete any of the phantom chm files you find, but leave the correct ones for the moment. If you cannot see any of the phantom chm files here, then you may need to manually edit the xpj file in a text editor.

With RH closed, open the parent xpj in notepad. Towards the bottom of the file you'll find a section like this:

<mergedhelpfiles>

<file>

<name>child1.chm</name>
<comments></comments>

</file>
<file>

<name>child2.chm</name>
<comments></comments>

</file>

</mergedhelpfiles>

Delete the highlighted section for every phantom file that should no longer be merged.

Save the file once you've removed all the phantom entries.

I can't remember if you need to delete the cpd to ensure these changes stick. You should be safe to, but if you're hesitant, open the project in RH, re-open the xpj file in notepad and see if the incorrect entries have come back. If they have, repeat the above, but delete the cpd before opening the project.

Hopefully this will solve the phantom [MERGE FILES] entries. It's likely you will still have to deal with hard coded paths for the correct merged chms in which case you'll have to use the workaround I mentioned in my previous post.

Following Rick's suggestion to search all folders you have access to is still a good idea. It should also include the names of the phantom chms you can see in the hhp. If you don't want to delete them, putting them in a folder that isn't in the project directories, and that you're sure has never been part of a project should be fine. Or renaming them in their current locations. e.g. Child1_old.chm or child1.chm.backup.

And feel free to make your edits of the hhp file in a text editor like Notepad as it's just a plain text file, and will avoid any problems HTML Help Workshop crashing.

If none of the above fixes the incorrect content appearing, the final thing to try is deleting the correct chms out of the parent project folder using Windows Explorer, as I mentioned in my first post. Let me know if you want me to go into more detail about that.

Amber

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 22, 2010 Aug 22, 2010

Thank you all so much for taking the time to help I'm still not entirely

sure what it is that caused the problems, but I followed Amber's suggestions to

open the xpj in notepad and delete the merged files, open the hhp in notepad and

delete the merged files, delete the cpd file, and clear the project cache every

time a project is opened.. I also removed all merged projects from my master

project TOC, and started the merge from scratch with all my latest child .chm

files (I didn't generate them to an external folder, just left them in their own

output folder), and it has woked nicely. No more old topics being picked up, no

more random browse sequences! (in fact no browse sequences at all but that is

fine).

It's all a good learning experience despite the frustrations!!

Thanks

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Sep 09, 2010 Sep 09, 2010
LATEST

Hi,

A bit late answering this one I'm afraid. I've experienced exactly the same problem and worse ir doesn't show up on my machine. Only show up when my chm merged project is copied to other pcs.

Anyway here's what I do about it:

This problem is caused by baggage files being out of date so I have to re-link all sub projects back into the master and then re-generate. When re-linking the software will tell you it's updating the project. All new help where I work now uses web help which doesn't seem to suffer from this problem!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
RoboHelp Documentation
Download Adobe RoboHelp