<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
2.17<div><span style="font-size: 10pt; ">Templates > Page Templates.</span></div><div>Opens template.rtl</div><div><span style="font-size: 10pt; ">Double click LO.</span></div><div>Insert Image Viewer.</div><div><br></div><div>Close Wizard.</div><div><span style="font-size: 10pt; ">Edit template.xwd</span></div><div><span style="font-size: 10pt; ">Open wizard.</span></div><div><span style="font-size: 10pt; ">Highlight Image Viewer icon.</span></div><div><span style="font-size: 10pt; ">No change.</span></div><div><span style="font-size: 10pt; "><br></span></div><div><br></div><div><div><br></div><div>Date: Wed, 3 Oct 2012 13:53:29 +0100<br>From: johnathan.kemp@ntlworld.com<br>To: xerte-dev@lists.nottingham.ac.uk<br>Subject: [Xerte-dev] Re: Fusing 2 items<br><br><div>Would you mind posting the code for your complete xwd file, and I will take a look at it?<br></div><div><br></div><div>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 </div>

<ol><li>open the pages xwd in xerte</li><li>Select the top level entry (below the pageWizard folder</li><li>Click the delete button (to delete the current xml content for the page)</li><li>Close the form</li><li>Re open the form</li>

<li>Click the insert button to insert a new default page data into the xml</li></ol><div>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.</div>

<div><br></div><div>Kind regards</div><div><br></div><div>Johnathan</div><br><div class="ecxgmail_quote">On 3 October 2012 13:44, Dave Burnett <span dir="ltr"><<a href="mailto:d_b_burnett@hotmail.com">d_b_burnett@hotmail.com</a>></span> wrote:<br>

<blockquote class="ecxgmail_quote" style="border-left:1px #ccc solid;padding-left:1ex">


<div><div dir="ltr"><div>
<div>It may be that all you need to do is add</div><div><span style="font-size:10pt">name2="some text"</span></div><div><span style="font-size:10pt">in the newNodes section of your xwd file after the entry for </span></div>

<div><span style="font-size:10pt">url="Whatever text you are using as the default for this attribute"</span></div><div><br></div><div><br></div></div><div>Coincidentally, name2 is exactly what I originally tried.</div>

<div><span style="font-size:10pt">Is the "newNodes" section actually creating the object, or just giving it a value so the value doesn't appear as "undefined"?</span></div><div><br></div><div>This is how imageViewer appears for me in the newNodes section</div>

<div><br></div><div>      <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> </div>

<div><br></div><div><br></div><br><div><hr>Date: Wed, 3 Oct 2012 13:22:07 +0100<div><div><br>From: <a href="mailto:johnathan.kemp@ntlworld.com">johnathan.kemp@ntlworld.com</a><br>To: <a href="mailto:xerte-dev@lists.nottingham.ac.uk">xerte-dev@lists.nottingham.ac.uk</a><br>

Subject: [Xerte-dev] Re: Fusing 2 items<br><br><div>This is not a 2.17 or 2.18 issue 2.18 you should be able to use 2.18</div><div><br></div><div>Look at the example I just sent you and see if that makes things clearer.</div>

<div><br></div><div>It may be that all you need to do is add</div>

<div><br></div><div>name2="some text"</div><div><br></div><div>in the newNodes section of your xwd file after the entry for </div><div><br></div><div>url="Whatever text you are using as the default for this attribute"</div>


<div><br></div><div>
Kind regards</div><div><br></div><div>Johnathan</div><br><div>On 3 October 2012 13:11, Dave Burnett <span dir="ltr"><<a href="mailto:d_b_burnett@hotmail.com">d_b_burnett@hotmail.com</a>></span> wrote:<br>



<blockquote style="border-left:1px #ccc solid;padding-left:1ex">


<div><div dir="ltr">
<br>OK, I reverted to 2.17 after running into issues with 2.18.<div><span style="font-size:10pt">I imagine that's why I can't find it.</span></div><div><br></div><div><div><div>  <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."></div>



<div><br></div><div>    <name type="TextInput" label="Page Title"/></div><div>    <align type="ComboBox" label="Align Text" options="Bottom" width="100"/></div>



</div><div>    <url type="media" label="Imagesdfsdf"/></div><div><br></div><div>    <name2 type="TextInput" label="Daves added input"/>   /// this does not appear?</div>



<div><br></div><div>  </imageViewer></div></div><div><br></div><div><br></div><div><div><br></div><div><br><div><hr>Date: Wed, 3 Oct 2012 13:03:03 +0100<div><div><br>From: <a href="mailto:johnathan.kemp@ntlworld.com">johnathan.kemp@ntlworld.com</a><br>



To: <a href="mailto:xerte-dev@lists.nottingham.ac.uk">xerte-dev@lists.nottingham.ac.uk</a><br>Subject: [Xerte-dev] Re: Fusing 2 items<br><br><div>Sorry for not being able to reply to you any earlier.</div>



<div><br></div><div>You can find a copy in your xerte installation folder e.g.</div><div><br></div><div>c:\xerte\pages\wizards\en-GB\</div><div><br></div><div>
Kind regards</div><div><br></div><div>Johnathan</div><br><div>On 2 October 2012 17:00, Dave Burnett <span dir="ltr"><<a href="mailto:d_b_burnett@hotmail.com">d_b_burnett@hotmail.com</a>></span> wrote:<br>




<blockquote style="border-left:1px #ccc solid;padding-left:1ex">


<div><div dir="ltr">
<br>er, where's scenario.xwd?<div><br></div><div><br><div><hr>Date: Tue, 2 Oct 2012 16:39:28 +0100<br>From: <a href="mailto:johnathan.kemp@ntlworld.com">johnathan.kemp@ntlworld.com</a><br>To: <a href="mailto:xerte-dev@lists.nottingham.ac.uk">xerte-dev@lists.nottingham.ac.uk</a><br>




Subject: [Xerte-dev] Re: Fusing 2 items<div><div><br><br><div>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. <br>




</div>
<div><br></div><div>If you open scenario.xwd you can see an example of something similar</div><div><br></div><div>The page level element is <scenario> and the child elements of scenario are</div><div><gamesetup></div>





<div><scenarioActions></div><div><proplist></div><div><br></div><div>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.</div>





<div><br></div><div>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.</div>





<div><br></div><div>Hope this clears things up if not post back and I will try and answer any further questions.</div><div><br></div><div>Kind regards</div><div><br></div><div>Johnathan</div><br><div>On 2 October 2012 15:45, Dave Burnett <span dir="ltr"><<a href="mailto:d_b_burnett@hotmail.com">d_b_burnett@hotmail.com</a>></span> wrote:<br>





<blockquote style="border-left:1px #ccc solid;padding-left:1ex">


<div><div dir="ltr">
<div><br></div>How difficult will it be to fuse 2 items?<div><br></div><div>I'm trying to make a template page that has the Image Viewer occupying the up area with the Model Answer in the Lower.</div><div>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.</div>





<div><span style="font-size:10pt"><br></span></div><div><span style="font-size:10pt">Dave</span></div><div><br><div><br></div><div><br></div></div>                                       </div><br>

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

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.
<br>
</div>
<br>_______________________________________________<br>
Xerte-dev mailing list<br>
<a href="mailto:Xerte-dev@lists.nottingham.ac.uk">Xerte-dev@lists.nottingham.ac.uk</a><br>
<a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev</a><br>
<br>
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.<br>






<br>
This message has been checked for viruses but the contents of an attachment<br>
may still contain software viruses which could damage your computer system:<br>
you are advised to perform your own checks. Email communications with the<br>
University of Nottingham may be monitored as permitted by UK legislation.<br>
<br>
<br></blockquote></div><br>
<br>_______________________________________________
Xerte-dev mailing list
<a href="mailto:Xerte-dev@lists.nottingham.ac.uk">Xerte-dev@lists.nottingham.ac.uk</a>
<a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev</a>

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.</div></div></div></div>                                         </div></div>
<br>_______________________________________________<br>
Xerte-dev mailing list<br>
<a href="mailto:Xerte-dev@lists.nottingham.ac.uk">Xerte-dev@lists.nottingham.ac.uk</a><br>
<a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev</a><br>
<br>
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.<br>





<br>
This message has been checked for viruses but the contents of an attachment<br>
may still contain software viruses which could damage your computer system:<br>
you are advised to perform your own checks. Email communications with the<br>
University of Nottingham may be monitored as permitted by UK legislation.<br>
<br>
<br></blockquote></div><br>
<br>_______________________________________________
Xerte-dev mailing list
<a href="mailto:Xerte-dev@lists.nottingham.ac.uk">Xerte-dev@lists.nottingham.ac.uk</a>
<a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev</a>

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.</div></div></div></div></div>                                     </div></div>
<br>_______________________________________________<br>
Xerte-dev mailing list<br>
<a href="mailto:Xerte-dev@lists.nottingham.ac.uk">Xerte-dev@lists.nottingham.ac.uk</a><br>
<a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev</a><br>
<br>
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.<br>




<br>
This message has been checked for viruses but the contents of an attachment<br>
may still contain software viruses which could damage your computer system:<br>
you are advised to perform your own checks. Email communications with the<br>
University of Nottingham may be monitored as permitted by UK legislation.<br>
<br>
<br></blockquote></div><br>
<br>_______________________________________________
Xerte-dev mailing list
<a href="mailto:Xerte-dev@lists.nottingham.ac.uk">Xerte-dev@lists.nottingham.ac.uk</a>
<a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev</a>

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.</div></div></div>                                     </div></div>
<br>_______________________________________________<br>
Xerte-dev mailing list<br>
<a href="mailto:Xerte-dev@lists.nottingham.ac.uk">Xerte-dev@lists.nottingham.ac.uk</a><br>
<a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev</a><br>
<br>
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.<br>


<br>
This message has been checked for viruses but the contents of an attachment<br>
may still contain software viruses which could damage your computer system:<br>
you are advised to perform your own checks. Email communications with the<br>
University of Nottingham may be monitored as permitted by UK legislation.<br>
<br>
<br></blockquote></div><br>
<br>_______________________________________________
Xerte-dev mailing list
Xerte-dev@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.</div></div>                                         </div></body>
</html>