Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Editor

Notices

Reply
 
Thread Tools Search this Thread
Old 01-06-2015, 05:48 PM   #1
20Gt
Member
20Gt began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Dec 2013
Device: Android
How to add Buttons or links to other pages in the book?

Hi
I'm making a choose your own ending book where the reader makes choices through out the book. Depending on what they choose the book takes them through different adventures. how do I add links or anchors to different pages?
20Gt is offline   Reply With Quote
Old 01-06-2015, 05:56 PM   #2
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,568
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
@20Gt a tool was added to the editor last week to help do just that ==>> see calibre - What's new, there's a link there to some doco, you'll need to have version 2.15 installed to make use of it

BR
BetterRed is online now   Reply With Quote
Old 01-06-2015, 05:58 PM   #3
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Use an html link.

Code:
<a href="path/to/file.xhtml#optional-element-id">text of link</a>
And the editor will now autocomplete the filepaths! (Brand new feature in the latest release.)

Edit: Great minds think alike.

Last edited by eschwartz; 01-06-2015 at 06:01 PM. Reason: ninjaed
eschwartz is offline   Reply With Quote
Old 01-06-2015, 06:27 PM   #4
20Gt
Member
20Gt began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Dec 2013
Device: Android
This?

is this the feature?
Edit Book: Add auto-completion for links.
um "After you type the # character, the editor will show you a list of all anchors in the target file" I don't get it.

i typed the# but nothing happened? how exactly does this work?

Last edited by 20Gt; 01-06-2015 at 06:51 PM.
20Gt is offline   Reply With Quote
Old 01-06-2015, 06:47 PM   #5
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,568
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by 20Gt View Post
is this the feature?
Edit Book: Add auto-completion for links.
Yep, you have to put the anchor into the target location (if you want somewhere other than top of file) - I'm not sure of the calibre book-editor has something that will help do that, Sigil has an Insert ID feature.

@eschwartz - it's easy to remember what was in last week's release, it's last month's, or year's releases that trouble me

BR
BetterRed is online now   Reply With Quote
Old 01-06-2015, 06:54 PM   #6
20Gt
Member
20Gt began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Dec 2013
Device: Android
ok i pasted this <a href="path/to/file.xhtml#optional-element-id">text of link</a>

now i see whgere the# is and it does work but is there a hot key or do i have to paste and edit every time?
20Gt is offline   Reply With Quote
Old 01-06-2015, 07:05 PM   #7
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
The snippet I posted was an instructional example.

path/to/file.xhtml is a suggestion that you will want to put the path to the file you want to link to.

The completion popup will help you deal with those, just start typing any part of the filename.
eschwartz is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PRS-T1 How to get Kindle-for-Android turn pages using hardward buttons? drdtyc Sony Reader 1 08-09-2013 10:59 AM
Remove and Add pages and change file names emonster ePub 0 01-26-2012 01:05 PM
Clicking links that open new pages? RussianCause Amazon Kindle 2 09-14-2011 10:40 AM
Pages load twice - but only using the buttons omk3 Sony Reader 2 03-10-2010 04:57 AM


All times are GMT -4. The time now is 01:23 AM.


MobileRead.com is a privately owned, operated and funded community.