[Xerte-dev] Re: Fusing 2 items

Julian Tenney Julian.Tenney at nottingham.ac.uk
Wed Oct 3 14:19:37 BST 2012


Or add the new attributes to the xml the wizard is rendering. The newNodes contains payloads: it doesn't affect what's already in the file.

From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Kemp Johnathan
Sent: 03 October 2012 14:19
To: For Xerte technical developers
Subject: [Xerte-dev] Re: Fusing 2 items

Try deleting your image viewer page from your project, saving the changes to your project then adding a new imageViewer page.

JK

On 3 October 2012 14:12, Dave Burnett <d_b_burnett at hotmail.com<mailto:d_b_burnett at hotmail.com>> wrote:
2.17
Templates > Page Templates.
Opens template.rtl
Double click LO.
Insert Image Viewer.

Close Wizard.
Edit template.xwd
Open wizard.
Highlight Image Viewer icon.
No change.



Date: Wed, 3 Oct 2012 13:53:29 +0100

From: johnathan.kemp at ntlworld.com<mailto:johnathan.kemp at ntlworld.com>
To: xerte-dev at lists.nottingham.ac.uk<mailto:xerte-dev at lists.nottingham.ac.uk>
Subject: [Xerte-dev] Re: Fusing 2 items
Would you mind posting the code for your complete xwd file, and I will take a look at it?

If you are using 2.18 and a pages project, then when you make changes to your xwd file in order to add new attribute fields you need to remember to
1.      open the pages xwd in xerte
2.      Select the top level entry (below the pageWizard folder
3.      Click the delete button (to delete the current xml content for the page)
4.      Close the form
5.      Re open the form
6.      Click the insert button to insert a new default page data into the xml
On completion of point 6 you should see the new form with your extra fields displayed - if everything in your xwd file is as it should be.

Kind regards

Johnathan

On 3 October 2012 13:44, Dave Burnett <d_b_burnett at hotmail.com<mailto:d_b_burnett at hotmail.com>> wrote:
It may be that all you need to do is add
name2="some text"
in the newNodes section of your xwd file after the entry for
url="Whatever text you are using as the default for this attribute"


Coincidentally, name2 is exactly what I originally tried.
Is the "newNodes" section actually creating the object, or just giving it a value so the value doesn't appear as "undefined"?

This is how imageViewer appears for me in the newNodes section

      <imageViewer><![CDATA[<imageViewer name="Dave Enter Page Title" align="Left" url="Select an Image" newTextField="Enter some new text">Enter text for the page here</imageViewer>]]></imageViewer>



________________________________
Date: Wed, 3 Oct 2012 13:22:07 +0100

From: johnathan.kemp at ntlworld.com<mailto:johnathan.kemp at ntlworld.com>
To: xerte-dev at lists.nottingham.ac.uk<mailto:xerte-dev at lists.nottingham.ac.uk>
Subject: [Xerte-dev] Re: Fusing 2 items
This is not a 2.17 or 2.18 issue 2.18 you should be able to use 2.18

Look at the example I just sent you and see if that makes things clearer.

It may be that all you need to do is add

name2="some text"

in the newNodes section of your xwd file after the entry for

url="Whatever text you are using as the default for this attribute"

Kind regards

Johnathan

On 3 October 2012 13:11, Dave Burnett <d_b_burnett at hotmail.com<mailto:d_b_burnett at hotmail.com>> wrote:

OK, I reverted to 2.17 after running into issues with 2.18.
I imagine that's why I can't find it.

  <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="Imagesdfsdf"/>

    <name2 type="TextInput" label="Daves added input"/>   /// this does not appear?

  </imageViewer>




________________________________
Date: Wed, 3 Oct 2012 13:03:03 +0100

From: johnathan.kemp at ntlworld.com<mailto:johnathan.kemp at ntlworld.com>
To: xerte-dev at lists.nottingham.ac.uk<mailto:xerte-dev at lists.nottingham.ac.uk>
Subject: [Xerte-dev] Re: Fusing 2 items
Sorry for not being able to reply to you any earlier.

You can find a copy in your xerte installation folder e.g.

c:\xerte\pages\wizards\en-GB\

Kind regards

Johnathan

On 2 October 2012 17:00, Dave Burnett <d_b_burnett at hotmail.com<mailto:d_b_burnett at hotmail.com>> wrote:

er, where's scenario.xwd?


________________________________
Date: Tue, 2 Oct 2012 16:39:28 +0100
From: johnathan.kemp at ntlworld.com<mailto:johnathan.kemp at ntlworld.com>
To: xerte-dev at lists.nottingham.ac.uk<mailto:xerte-dev at lists.nottingham.ac.uk>
Subject: [Xerte-dev] Re: Fusing 2 items

To keep things simple you could simply paste the modelAnswer parameters section as a child of the image viewer  element. This would avoid any issues with the two pages having any parameters with the same name.

If you open scenario.xwd you can see an example of something similar

The page level element is <scenario> and the child elements of scenario are
<gamesetup>
<scenarioActions>
<proplist>

The <pageWizard><newNodes> section declares both the scenario element parameters and its children's parameters so that when a new page is created it already has its child elements populated with default data.

Once you get your example working remember if you want it to co-exist with other Xerte page types that you should give any element that is a top level element in a <newNodes> block a unique name that is not used in any of the other page types. Your model file will then need editing (use search and replace in Flashdevelop) to replace the original name with the new name.

Hope this clears things up if not post back and I will try and answer any further questions.

Kind regards

Johnathan

On 2 October 2012 15:45, Dave Burnett <d_b_burnett at hotmail.com<mailto:d_b_burnett at hotmail.com>> wrote:

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.



_______________________________________________ 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.

_______________________________________________
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/62f1de60/attachment-0001.html>


More information about the Xerte-dev mailing list