This content has been marked as final. Show 7 replies
The target must be exactly what RH will encounter in the output. That is, when the snippet is inserted into a topic and RH is confronted with the target "!SSL!/FlashHelp/#bookmarkname," it expects to find that bookmarkname within the current topic. Therefore, your target should be "!SSL!/FlashHelp/ActualBookmarkTopic.htm #bookmarkname."
I suggest you take a look at David Locke's article about Snippets on Adobe's site.
Bookmarks in Snippets don't work. There is a way of bookmarking the snippet itself and that is in David'd article.
Thanks for your feedback.
" Therefore, your target should be "!SSL!/FlashHelp/ActualBookmarkTopic.htm #bookmarkname.""
In fact, using a full (mostly) path when defining target works well but only once! I mean, only for that instance... for that topic (where the snippet is in use).
Since the advantage of snippets is to use them in several topics (to make content update easier), it is however impossible to defined more than one target for an hyperlink!
I was afraid that this answer would occur! I took a look at David Locke's article and it seem very clear indeed.
I hope Adobe will find a way to enhance RH 7 snippet feature very soon. It is a very good idea but it is not actually very easy to manage.
Hi Jean and all
Where there is a will, there is nearly always a way. I managed to coax a bookmark into working with a snippet, but it's a bit on the tricksy side and not without quirks.
Edit the snippet.
Insert the cursor where you would like to insert the bookmark.
Click Insert > HTML > Advanced > Script...
Type the following into the Script dialog: document.write('<a name=bookmark_name></a>');.
Click OK to dismiss the dialog.
Here are the quirks.
* If you test using Preview, the link will fail. But should work fine in output. (I tested inside a .CHM file)
* RoboHelp will list links to the bookmark as being broken. (Remember? The bookmark is being dynamically added as the page displays, so RoboHelp doesn't know it is there.
Hopefully this helps... Rick
Thinking some more about this, during the beta testing I think it was the case that you could enter a bookmark in the snippet but the problem was that Project Manager did notdisplay it, and it had the problems that Rick points out.
This means you have to remember every bookmark in every Snippet, and make sure your successor is aware of them.
For those reasons, I recommend bookmarking the snippet itself.
If you do go for either Rick's solution or trying this, make sure your bookmarks have an ID at the beginning or end so that you can spot them in the list of broken links, otherwise you won't know these from real broken links.
Thanks to Rick and Peter (again) for help and precious information.