[Xerte-dev] Re: slideshow navigation within the text?

Ron Mitchell ronm at mitchellmedia.co.uk
Wed Oct 7 15:57:01 BST 2015


spoke to soon :-(

 

It works at first but then the code gets stripped and no longer works. Not
sure if that's just the editor or xenith.js but for instance after further
edits the code that does work gets changed:

 



 

Not sure there's any way to prevent that?

Ron

 

 

From: xerte-dev-bounces at lists.nottingham.ac.uk
[mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Ron Mitchell
Sent: 07 October 2015 14:01
To: 'For Xerte technical developers'
Subject: [Xerte-dev] Re: slideshow navigation within the text?

 

Thanks Fay

that's really useful. I had one bit of the syntax wrong :-(

Cheers

Ron

 

From: xerte-dev-bounces at lists.nottingham.ac.uk
[mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Fay Cross
Sent: 07 October 2015 13:41
To: For Xerte technical developers
Subject: [Xerte-dev] Re: slideshow navigation within the text?

 

You can add those lines of code from the model to a normal link in the text

e.g. This works: <a href="javascript:void(0);"
onclick='slideshow.panelChange($("#pageContents").data("currentPage") -
1);'> Previous </a>

 

You'd still have the default buttons but you could probably hide these too
if you wanted to override the way it normally works completely

 

From: xerte-dev-bounces at lists.nottingham.ac.uk
[mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Ron Mitchell
Sent: 07 October 2015 12:59
To: 'For Xerte technical developers'
Subject: [Xerte-dev] slideshow navigation within the text?

 

Hi all

quick question.

On a slide show page is there a way I can add navigation to a text or
graphic element e.g. next >> which replicates the model code e.g. 

.click(function() {
slideshow.panelChange($("#pageContents").data("currentPage") + 1);

and likewise:

.click(function()
{slideshow.panelChange($("#pageContents").data("currentPage") - 1);

Cheers

Ron

 
 
 
This message and any attachment are intended solely for the addressee
and may contain confidential information. If you have received this
message in error, please send it back to me, and immediately delete it. 
 
Please do not use, copy or disclose the information contained in this
message or in any attachment.  Any views or opinions expressed by the
author of this email do not necessarily reflect the views of the
University of Nottingham.
 
This message has been checked for viruses but the contents of an
attachment may still contain software viruses which could damage your
computer system, you are advised to perform your own checks. Email
communications with the University of Nottingham may be monitored as
permitted by UK legislation.
 
 
 
This message and any attachment are intended solely for the addressee
and may contain confidential information. If you have received this
message in error, please send it back to me, and immediately delete it. 
 
Please do not use, copy or disclose the information contained in this
message or in any attachment.  Any views or opinions expressed by the
author of this email do not necessarily reflect the views of the
University of Nottingham.
 
This message has been checked for viruses but the contents of an
attachment may still contain software viruses which could damage your
computer system, you are advised to perform your own checks. Email
communications with the University of Nottingham may be monitored as
permitted by UK legislation.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte-dev/attachments/20151007/5ad82b47/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.jpg
Type: image/jpeg
Size: 34692 bytes
Desc: not available
URL: <http://lists.nottingham.ac.uk/pipermail/xerte-dev/attachments/20151007/5ad82b47/attachment-0001.jpg>


More information about the Xerte-dev mailing list