View Single Post
Old 12-08-2020, 07:08 PM   #11
Banjo
Zealot
Banjo , Klaatu Barada Niktu!Banjo , Klaatu Barada Niktu!Banjo , Klaatu Barada Niktu!Banjo , Klaatu Barada Niktu!Banjo , Klaatu Barada Niktu!Banjo , Klaatu Barada Niktu!Banjo , Klaatu Barada Niktu!Banjo , Klaatu Barada Niktu!Banjo , Klaatu Barada Niktu!Banjo , Klaatu Barada Niktu!Banjo , Klaatu Barada Niktu!
 
Banjo's Avatar
 
Posts: 120
Karma: 5276
Join Date: Feb 2013
Device: Asus Zen Pad
Quote:
If you want Sigil to create the links, you'll have to insert two anchors with class="sigil_index_marker" attributes and the same text. Obviously, you'll need to hide one of the entries. (In the following example, I used inline styles for demonstration purposes; you'll want to use classes instead.)
I tried your test and it worked. So I adapted it to fit in my book and it also works there.

I originally tried adding a paragraph with "visibility:hidden", but the text still showed up in one of the readers. Your suggestion seems to solve that.

I am still confused about this suggestion:

Quote:
It can be done. It just seems silly. Put the chapters in the order they should be read. In the index you just need to put in a link to the file such as <a href="chapter1.html">Chapter 1</a>.
If I edit Index.xhtml and add that code, it will be lost when the index generation tool overwrites the index file. I am missing something.
Banjo is offline   Reply With Quote