[Xerte] Current Page

Paul Beckwith paul.beckwith at acns-group.com
Thu Oct 8 16:15:02 BST 2009


Yeah that gets me into the xml file but  I want to read the element for the
current page.  tried templateData.learningObject[currentPage].name

 

But no joy

 

 

From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney
Sent: 08 October 2009 15:16
To: Xerte discussion list
Subject: RE: [Xerte] Current Page

 

templateData.learningObject[0].title

 

??

 

From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Paul Beckwith
Sent: Thursday, October 08, 2009 2:22 PM
To: 'Xerte discussion list'
Subject: RE: [Xerte] Current Page

 

I'm after the "name" attribute in the template.xml (with the
<learningObject></learningObject> in it)

 

Problem is, I want to get that data for the current page that the lesson is
on.

 

 

From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney
Sent: 08 October 2009 13:27
To: Xerte discussion list
Subject: RE: [Xerte] Current Page

 

Icon.parentNode.XMLElement.attributes.name from a script in the page.?

 

But really you want information from the wizard's xml file, surely?

 

From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Paul Beckwith
Sent: Thursday, October 08, 2009 1:27 PM
To: 'Xerte discussion list'
Subject: RE: [Xerte] Current Page

 

Tried:

 

rootIcon.currentPage.XMLElement.attributes.name

rootIcon.currentPage.XMLElement. name

rootIcon.XMLElement[currentPage].name

rootIcon.XMLElement.currentPage.name 

 

No joy.

 

I'm doing it in Wizards.

 

 

 

From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney
Sent: 08 October 2009 11:51
To: Xerte discussion list
Subject: RE: [Xerte] Current Page

 

Maybe via XMLElement?

 

From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Paul Beckwith
Sent: Thursday, October 08, 2009 11:04 AM
To: 'Xerte discussion list'
Subject: [Xerte] Current Page

 

Is there a way I can get info about the current page in Xerte?

 

Thought I had used something like it before, like rootIcon.currentPage.name
or something?

 

Thanks,

 

P

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20091008/4a012d4d/attachment.html


More information about the Xerte mailing list