[Xerte-dev] Back BUttons

Julian Tenney Julian.Tenney at nottingham.ac.uk
Thu Oct 18 11:43:42 BST 2012


Johnathan,

I have just checked into the xerte repository the changes we talked about last week:

There is a method rootIcon.setNavigationStyle(style);//'linear' or 'menu'
It adjusts the navigation style and switches out the back button for a modified one (not settled on the final graphics yet, but it looks OK)

Also a rootIcon.addHomeButton(x,y) method which, well, you've figured that out. It always takes the user to page one of the LO (though this could be parameterised maybe: addHomeButtn(x,y,index);//where index is the page to go to.

I think we should do support for switching various buttons around / setting up different interfaces in the engine, rather than the LO code, so you can easily get the nav style and interfcesetup you want by calling (ideally) one method. How would we go about this?

I'm around tomorrow, and have some time to look at this, then I'm off all of next week,

Example attached, you'll need the files I checked in.

I added the 'Home' button string to the en_GB file. So this raises another question about how do we make sure new features are supported in all the languages?

Julian

From: Kemp Johnathan [mailto:johnathan.kemp at ntlworld.com]
Sent: 15 October 2012 11:31
To: Julian Tenney
Subject: Re: Navigation changes to Xerte / XOT with respect to Connector Pages

Depends if we are also going to have a "Home" button. If so then that would also need creating.

I guess the rest is handled in the makePages script so I can take a look at that once the buttons are available.

Since the "Historic" navigation style will not offer the Contents button or the Page n of m display, how would you prefer these were handled? Is it acceptable to you that the Contents button is hidden in this situation rather than just disabled?

Kind regards

Johnathan

On 15 October 2012 09:33, Julian Tenney <Julian.Tenney at nottingham.ac.uk<mailto:Julian.Tenney at nottingham.ac.uk>> wrote:
Cheers, I'll look at it later in the week, the setNavigationStyle() is still in the code, and the historical code is just commented out, so all that needs to happen from my point of view is to make a different looking back (rather than prev) button, and switch it out when the function gets called, right?

From: Kemp Johnathan [mailto:johnathan.kemp at ntlworld.com<mailto:johnathan.kemp at ntlworld.com>]
Sent: 13 October 2012 16:19
To: Julian Tenney
Subject: Navigation changes to Xerte / XOT with respect to Connector Pages

Hello Julian,

Thanks once again for arranging such a useful event.

Following on from the discussions regarding the Xerte Navigation options and the Connector pages you asked me remind you as to what changes needed making.

A new option for the Learning Object Navigation attribute of "Historic"

This option would provide a Home Button, a Back Button (Historic) and a Next button (linear). The Contents button and Progress display (page n of m) would not be displayed.
The back button would display a different symbol to that used by the current linear back button.
Other buttons such as the help and media buttons would not be affected.

At present I use the following code to disable the buttons based on attributes in the xwd form

// next button and continue button
if (nextSet != undefined){
rootIcon.nextBtn.setEnabled(nextSet);
rootIcon.contButton.setEnabled(nextSet);
}
// back button
if (backSet != undefined){
rootIcon.backBtn.setEnabled(backSet);
}
// table of contents
if (tocSet != undefined){
rootIcon.tocBtn.setEnabled(tocSet);
}

If you could let me know what calls I will need to make to enable / disable the home button and linear back buttons I will then mock up some demonstration xwds for a connector page to show how the Author might be given choices to control which buttons are displayed or hidden. Then you will be in a better position to decide how you would prefer this was handled in the xwd forms. I will try to keep this as simple as possible, but am aware that I am currently trying to both keep it simple and give users the flexibility that some will want to have..

Kind regards

Johnathan


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/20121018/e54a963d/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: back.rlo
Type: application/octet-stream
Size: 1016 bytes
Desc: back.rlo
URL: <http://lists.nottingham.ac.uk/pipermail/xerte-dev/attachments/20121018/e54a963d/attachment.obj>


More information about the Xerte-dev mailing list