[Xerte-dev] Re: Identifying the index of the current page in Xerte

Julian Tenney Julian.Tenney at nottingham.ac.uk
Thu Nov 22 11:19:09 GMT 2012


Did you figure it out?

From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Kemp Johnathan
Sent: 21 November 2012 17:55
To: Xerte Developers Discussion List
Subject: [Xerte-dev] Identifying the index of the current page in Xerte

Is it possible to identify the index of the current page in Xerte BEFORE any script in the page runs.

I am trying to duplicate a feature from XOT that sets which navigation buttons are enabled based on an xml data value for that page.

In Xerte there is a rootIcon.pages array that will contain the xml values for the page, but I need to be able to identify the index of the current page that is loading so that I can set the navigation in code run off the entry frame based on the navSetting data value for the page..

If I can't crack this then the only alternative I have, if this feature is to be available in Xerte, is to add extra code to each model file, which I really (really really!) want to avoid doing.

Kind regards

Johnathan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte-dev/attachments/20121122/5a9796b4/attachment.html>


More information about the Xerte-dev mailing list