<div>Hello Dave,<br></div><div><br></div><div>The following should give an example of adding an extra text field to the image viewer wizard.</div><div><br></div><div><wizard menus="Media"><br> <pageWizard remove="true" duplicate="false"><br>
<newNodes><br> <imageViewer><![CDATA[<imageViewer name="Enter Page Title" align="Left" url="Select an Image"<br> moveTip="Move"<br> zoomInTip="Zoom In"<br>
zoomOutTip="Zoom Out"<br> selectAreaTip="Select Area"<br> resetImageTip="Reset Image"<br> toggleScreenTip="Toggle Full Screen"</div><div><font color="#3366ff">newTextField="Enter some new text"</font><br>
>Enter text for the page here</imageViewer>]]></imageViewer> <br> </newNodes> <br> </pageWizard><br><br> <!-- IMAGE VIEWER========================================== --><br> <imageViewer menu="Media" menuItem="Image Viewer" 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." icon="icImage" thumb="thumbs/imageViewer.jpg" label="Page Text" type="text" height="250" remove="true"><br>
<br> <name label="Page Title" type="TextInput" /> <br> <align label="Align Text" options="Left,Right,Top,Bottom" type="ComboBox" data="Left,Right,Top,Bottom" defaultValue="Left" width="100"/><br>
<url label="Image" type="media" /><br> <br> <moveTip label="Move Button Tip" type="textInput" divider="true" language="true" /> <br> <zoomInTip label="Zoom In Button Tip" type="textInput" language="true" /><br>
<zoomOutTip label="Zoom Out Button Tip" type="textInput" language="true" /><br> <selectAreaTip label="Select Button Tip" type="textInput" language="true" /><br>
<resetImageTip label="Reset Button Tip" type="textInput" language="true" /><br> <toggleScreenTip label="Toggle Button Tip" type="textInput" language="true" /></div>
<div><font color="#3366ff"> <newTextField label="New Text" type="TextInput" /> </font><br> <br> <narrationNavigate label="Navigate on narration" type="CheckBox" defaultValue="false" optional="true"/><br>
<playNarration label="Auto-play narration" type="CheckBox" defaultValue="false" optional="true"/><br> <narration label="Narration" type="media" optional="true"/><br>
<pageID label="Page ID" defaultValue="Unique ID for this page" type="TextInput" optional="true" /><br><br> </imageViewer><br><br></wizard></div><div><br></div>
<div>The entry in the new nodes section defines some default data to be added when the imageViewer xml is created.</div><div>The entry in the main <imageViewer> </imageViewer> section defines the element in the form, which will only be displayed if there is a matching data item in the xlm (which will be there because of the first blue entry above in the newNodes section).</div>
<div><br></div><div>Kind regards</div><div><br></div><div>Johnathan</div><div><br></div><div><br></div><div class="gmail_quote">On 3 October 2012 13:02, Dave Burnett <span dir="ltr"><<a href="mailto:d_b_burnett@hotmail.com" target="_blank">d_b_burnett@hotmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div dir="ltr">
<br>Can't get any new text input areas to appear on image viewer wizard...<div><div><br></div><div><div><div class="im"><hr>From: <a href="mailto:Julian.Tenney@nottingham.ac.uk" target="_blank">Julian.Tenney@nottingham.ac.uk</a><br>
To: <a href="mailto:xerte-dev@lists.nottingham.ac.uk" target="_blank">xerte-dev@lists.nottingham.ac.uk</a><br></div>Date: Wed, 3 Oct 2012 12:19:49 +0100<div><div class="h5"><br>Subject: [Xerte-dev] Re: Fusing 2 items<br><br>
<div><p><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">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.</span></p>
<p><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span></p><p><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">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,</span></p>
<p><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span></p><div><div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0cm 0cm 0cm"><p style="margin-left:36.0pt">
<b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> <a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk" target="_blank">xerte-dev-bounces@lists.nottingham.ac.uk</a> [mailto:<a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk" target="_blank">xerte-dev-bounces@lists.nottingham.ac.uk</a>] <b>On Behalf Of </b>Dave Burnett<br>
<b>Sent:</b> 03 October 2012 12:17<br><b>To:</b> <a href="mailto:xerte-dev@lists.nottingham.ac.uk" target="_blank">xerte-dev@lists.nottingham.ac.uk</a><br><b>Subject:</b> [Xerte-dev] Re: Fusing 2 items</span></p></div></div>
<p style="margin-left:36.0pt"> </p><div><p style="margin-left:36.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""><br>And the wizard will automatically reflect?</span></p><div><p style="margin-left:36.0pt">
<span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">I tried adding hard code in template.xwd and I just get some replaced with others marked undefined.</span></p></div><div><p style="margin-left:36.0pt">
<span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> </span></p></div><div><p style="margin-left:36.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> </span></p>
</div><div><div><p style="margin-left:36.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> <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."></span></p>
</div><div><p style="margin-left:36.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> </span></p></div><div><p style="margin-left:36.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> <name type="TextInput" label="Page Title"/></span></p>
</div><div><p style="margin-left:36.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> <align type="ComboBox" label="Align Text" options="Bottom" width="100"/></span></p>
</div><div><p style="margin-left:36.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> <url type="media" label="Image"/></span></p></div><div><p style="margin-left:36.0pt">
<span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> </span></p></div><div><p style="margin-left:36.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> <text type="TextArea" height="100" label="daveText"/></span></p>
</div><div><p style="margin-left:36.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> <prompt type="TextArea" height="100" label="daveText"/></span></p>
</div><div><p style="margin-left:36.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> </span></p></div><div><p style="margin-left:36.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> </imageViewer></span></p>
</div></div><div><p style="margin-left:36.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> </span></p></div><div><p style="margin-left:36.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> </span></p>
<div><div align="center" style="margin-left:36.0pt;text-align:center"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""><hr size="2" width="100%" align="center"></span></div><p style="margin-right:0cm;margin-bottom:12.0pt;margin-left:36.0pt">
<span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From: <a href="mailto:Julian.Tenney@nottingham.ac.uk" target="_blank">Julian.Tenney@nottingham.ac.uk</a><br>To: <a href="mailto:xerte-dev@lists.nottingham.ac.uk" target="_blank">xerte-dev@lists.nottingham.ac.uk</a><br>
Date: Wed, 3 Oct 2012 11:00:21 +0100<br>Subject: [Xerte-dev] Re: Fusing 2 items</span></p><div><p style="margin-left:36.0pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Easy enough.</span></p>
<p style="margin-left:36.0pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span></p><p style="margin-left:36.0pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">I’d work from Image Viewer as you suggest. Adapt the template using some hard wired text to start with</span></p>
<p style="margin-left:36.0pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span></p><p style="margin-left:36.0pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Add the params to the image viewer part of the xwd, so you have data.</span></p>
<p style="margin-left:36.0pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span></p><p style="margin-left:36.0pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">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}</span></p>
<p style="margin-left:36.0pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span></p><p style="margin-left:36.0pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span></p>
<p style="margin-left:36.0pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span></p><div><div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p style="margin-left:72.0pt"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> <a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk" target="_blank">xerte-dev-bounces@lists.nottingham.ac.uk</a> [<a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk" target="_blank">mailto:xerte-dev-bounces@lists.nottingham.ac.uk</a>] <b>On Behalf Of </b>Dave Burnett<br>
<b>Sent:</b> 02 October 2012 15:46<br><b>To:</b> <a href="mailto:xerte-dev@lists.nottingham.ac.uk" target="_blank">xerte-dev@lists.nottingham.ac.uk</a><br><b>Subject:</b> [Xerte-dev] Fusing 2 items</span></p></div></div><p style="margin-left:72.0pt">
<span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> </span></p><div><div><p style="margin-left:72.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> </span></p>
</div><p style="margin-left:72.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">How difficult will it be to fuse 2 items?</span></p><div><p style="margin-left:72.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> </span></p>
</div><div><p style="margin-left:72.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">I'm trying to make a template page that has the Image Viewer occupying the up area with the Model Answer in the Lower.</span></p>
</div><div><p style="margin-left:72.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">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.</span></p>
</div><div><p style="margin-left:72.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> </span></p></div><div><p style="margin-left:72.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">Dave</span></p>
</div><div><p style="margin-left:72.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> </span></p><div><p style="margin-left:72.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> </span></p>
</div><div><p style="margin-left:72.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> </span></p></div></div></div></div><p style="margin-left:36.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""><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>
<br>_______________________________________________ Xerte-dev mailing list <a href="mailto:Xerte-dev@lists.nottingham.ac.uk" target="_blank">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.</span></p>
</div></div></div></div><br>_______________________________________________
Xerte-dev mailing list
<a href="mailto:Xerte-dev@lists.nottingham.ac.uk" target="_blank">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>