[Xerte-dev] Re: Fusing 2 items
Julian Tenney
Julian.Tenney at nottingham.ac.uk
Wed Oct 3 13:54:41 BST 2012
The xml node.
Each node in the wizard's tree is a node in your file, right?
Each time you click on a node it builds the wizard for that node.
It loops over the attributes in the node, and looks in the xwd to see how to edit the data for each one.
From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett
Sent: 03 October 2012 13:53
To: xerte-dev at lists.nottingham.ac.uk
Subject: [Xerte-dev] Re: Fusing 2 items
This is what I've been getting at.
What object produces the wizard interface?
At this point I don't care if parameters are undefined.
What do I add where to just say add a text field to a wizard?
From: Julian.Tenney at nottingham.ac.uk<mailto:Julian.Tenney at nottingham.ac.uk>
To: xerte-dev at lists.nottingham.ac.uk<mailto:xerte-dev at lists.nottingham.ac.uk>
Date: Wed, 3 Oct 2012 13:37:42 +0100
Subject: [Xerte-dev] Re: Fusing 2 items
And you've got these things in place?
The new attributes in the xml payload defined in newNodes (and confirmed they are there by debug inside xerte?)
The items in the xwd's section for imageViewer?
Closed and re-opedned the wizard to reload the xwd?
From: xerte-dev-bounces at lists.nottingham.ac.uk<mailto:xerte-dev-bounces at lists.nottingham.ac.uk> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett
Sent: 03 October 2012 13:03
To: xerte-dev at lists.nottingham.ac.uk<mailto:xerte-dev at lists.nottingham.ac.uk>
Subject: [Xerte-dev] Re: Fusing 2 items
Can't get any new text input areas to appear on image viewer wizard...
________________________________
From: Julian.Tenney at nottingham.ac.uk<mailto:Julian.Tenney at nottingham.ac.uk>
To: xerte-dev at lists.nottingham.ac.uk<mailto:xerte-dev at lists.nottingham.ac.uk>
Date: Wed, 3 Oct 2012 12:19:49 +0100
Subject: [Xerte-dev] Re: Fusing 2 items
Ah, add those attributes to the payload in the newNodes section, so when you add a new daveImageVeiwer, the xml is added with those params present.
The wizard loops over all the params in the xml and says 'how should I edit this data?', and skips ones it doesn't have info in the xwd for,
From: xerte-dev-bounces at lists.nottingham.ac.uk<mailto:xerte-dev-bounces at lists.nottingham.ac.uk> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett
Sent: 03 October 2012 12:17
To: xerte-dev at lists.nottingham.ac.uk<mailto:xerte-dev at lists.nottingham.ac.uk>
Subject: [Xerte-dev] Re: Fusing 2 items
And the wizard will automatically reflect?
I tried adding hard code in template.xwd and I just get some replaced with others marked undefined.
<imageViewer type="text" height="250" label="Page Text" menu="Media" menuItem="Image Viewer" icon="icImage" remove="true" thumb="thumbs/imageViewer.jpg" hint="Allows a user to zoom in and out of a large image and select regions. Useful way of presenting large images in a small screen space.">
<name type="TextInput" label="Page Title"/>
<align type="ComboBox" label="Align Text" options="Bottom" width="100"/>
<url type="media" label="Image"/>
<text type="TextArea" height="100" label="daveText"/>
<prompt type="TextArea" height="100" label="daveText"/>
</imageViewer>
________________________________
From: Julian.Tenney at nottingham.ac.uk<mailto:Julian.Tenney at nottingham.ac.uk>
To: xerte-dev at lists.nottingham.ac.uk<mailto:xerte-dev at lists.nottingham.ac.uk>
Date: Wed, 3 Oct 2012 11:00:21 +0100
Subject: [Xerte-dev] Re: Fusing 2 items
Easy enough.
I'd work from Image Viewer as you suggest. Adapt the template using some hard wired text to start with
Add the params to the image viewer part of the xwd, so you have data.
Access them the same way the other params are being accessed in the image viewer template, and switch out your hard wired strings for the {data.long.path.to.param}
From: xerte-dev-bounces at lists.nottingham.ac.uk<mailto:xerte-dev-bounces at lists.nottingham.ac.uk> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett
Sent: 02 October 2012 15:46
To: xerte-dev at lists.nottingham.ac.uk<mailto:xerte-dev at lists.nottingham.ac.uk>
Subject: [Xerte-dev] Fusing 2 items
How difficult will it be to fuse 2 items?
I'm trying to make a template page that has the Image Viewer occupying the up area with the Model Answer in the Lower.
I think I can work out the template itself, but not sure how to adapt the Image Viewer Wizard to include the Model Answer params.
Dave
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.
_______________________________________________ Xerte-dev mailing list Xerte-dev at lists.nottingham.ac.uk<mailto:Xerte-dev at lists.nottingham.ac.uk> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev 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.
_______________________________________________ Xerte-dev mailing list Xerte-dev at lists.nottingham.ac.uk<mailto:Xerte-dev at lists.nottingham.ac.uk> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev 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.
_______________________________________________ Xerte-dev mailing list Xerte-dev at lists.nottingham.ac.uk<mailto:Xerte-dev at lists.nottingham.ac.uk> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev 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/20121003/f5ba9281/attachment-0001.html>
More information about the Xerte-dev
mailing list