Welcome,
Guest
|
|
Have just installed Book effects and it works as expected.
however how do you create anchor links to specific pages. If I wanted to create a table of content for example? |
The administrator has disabled public write access.
|
|
You can create the link with "<a href="#" onclick="$('#book_1').turn('page', 2);">page 2</a>",
#book_1 depends on how many book are viewed in the page (#book_1, #book_2, etc). In this way there are problem with pagination, so you must disable it, because the pagination is created dinamically when the page is turned one at a time. -- UPDATE -- try also onclick="jQuery('#book_1').turn... jQuery instead of $ |
If you like, if it was useful, consider a donation, Thanks
Se vuoi, se ti siamo stati utili, considera una donazione, Grazie Help us by voting our extensions on Joomla.org: JiFile JoomPhoto Mobile Easy Language
Last Edit: 17 Sep 2013 22:45 by Antonio.
The administrator has disabled public write access.
|
|
Hi,
Thank you for this nice extension. When I input your code in an article book : <p>{book height:500}{page}
[b]<a href="#" onclick="$('#BookTest-1').turn('page', 2);">page 2</a>[/b]
<a href="#">page 2</a> <span style="line-height: 1.3em;">{/page}</span><span style="line-height: 1.3em;">{page}page2</span><span style="line-height: 1.3em;">{/page}</span><span style="line-height: 1.3em;">{/book}</span></p> Then it becomes : <p>{book height:500}{page}
[b]<a href="#">page 2</a> <a href="#">page 2</a>[/b]
<a href="#">page 2</a> <span style="line-height: 1.3em;">{/page}</span><span style="line-height: 1.3em;">{page}page2</span><span style="line-height: 1.3em;">{/page}</span><span style="line-height: 1.3em;">{/book}</span></p> Of course, I've got the same result when I try (supposing, may be the problem was due to "book_1" name) <a href="#" onclick="$('#book_1').turn('page', 2);">page 2</a> For this reason, it's not possible, for me, to go directly to a page. Does somebody have an idea about this "problem" ? Thanks in advance Brgds Alfred |
Last Edit: 11 Dec 2013 14:34 by Antonio.
The administrator has disabled public write access.
|
|
Hi,
the correct link is: <a href="#" onclick="jQuery('#book_1').turn('page', 2); return false;">page 2</a> |
If you like, if it was useful, consider a donation, Thanks
Se vuoi, se ti siamo stati utili, considera una donazione, Grazie Help us by voting our extensions on Joomla.org: JiFile JoomPhoto Mobile Easy Language
The administrator has disabled public write access.
|
|
What is the code to be able to jump to end of book (last page)? So far so good plugin. Thanks
|
The administrator has disabled public write access.
|
|
amheng wrote:
What is the code to be able to jump to end of book (last page)? So far so good plugin. Thanks The code is: <a href="#" onclick="jQuery('#book_1').turn('page', 2); return false;">page 2</a> in place of "2" put the number of your last page. Note: Jump from one page to another, in some cases, can carry paging problems. |
If you like, if it was useful, consider a donation, Thanks
Se vuoi, se ti siamo stati utili, considera una donazione, Grazie Help us by voting our extensions on Joomla.org: JiFile JoomPhoto Mobile Easy Language
The administrator has disabled public write access.
|
If you not change browser settings, you agree to it. Learn more