[Xerte-dev] Re: Interactive Diagram Page (customHotspots.rlm)

Kemp Johnathan johnathan.kemp at ntlworld.com
Thu Feb 2 13:23:52 GMT 2012


Is the functionality you are referring to currently available in for use in
xwd files?

I am unaware that you can display fields in an xwd form based on the value
of a field in the form.

It would be useful to be able to break a form up into sections and be able
to hide or display each section, in a similar way to being able to expand
or collapse the structure of a page in the project tree.

If any of this functionality is currently available to xwd forms, do you
have any examples that would point me in the right direction?

Kind regards

Johnathan

On 2 February 2012 12:21, Julian Tenney <Julian.Tenney at nottingham.ac.uk>wrote:

> a)      Yes.
>
>
>
> Maybe we should have an option in the wizad to display the display text
> fields?
>
>
>
> Then in the xwd we can say ‘isDisplaytext’ and in the wizard check before
> adding the control?’ Have it toggleable by the user?
>
>
>
> *From:* xerte-dev-bounces at lists.nottingham.ac.uk [mailto:
> xerte-dev-bounces at lists.nottingham.ac.uk] *On Behalf Of *Kemp Johnathan
> *Sent:* 02 February 2012 11:23
>
> *To:* For Xerte technical developers
> *Subject:* [Xerte-dev] Re: Interactive Diagram Page (customHotspots.rlm)
>
>
>
> Assuming the approach you refer to above could be made to work, what would
> be the preference for the Xerte project?
>
>
>
> a) The page as it operates now, offering backward compatibility with
> existing toolkit projects customHotspot pages, but at a cost of having a
> rather long form with all the display text strings listed at the bottom of
> the form so that the author can edit them.
>
>
>
> b) A redesigned form that kept the display text in a separate sub form,
> but at a cost of losing backward compatibility with existing toolkit
> project based customHotspot pages, due to structural changes in the pages
> xml data.
>
>
>
> I'm guessing option a) but its not my call to make.
>
>
>
> Kind regards
>
>
>
> Johnathan
>
>
>
> On 2 February 2012 08:34, Julian Tenney <Julian.Tenney at nottingham.ac.uk>
> wrote:
>
> Hmm. Not sure. That’s a bit tricky. The CDATA is needed – it’s there as a
> placeholder to force the node to be a text node; without it, you can push
> xml into the nodeValue, and the custom hotspots is xml data. It can’t be
> stored as an attribute because of the formatting.
>
>
>
> The answer is to re-jig the nodes slightly, but this might break existing
> stuff…
>
>
>
> <node>
>
>   <payload>CDATA</payload> //a text node for the xml describing the
> drawing.
>
>   <children/> //children get added to this, not the page
>
> </node>
>
>
>
> …and I’m not sure how that’s going to work in the wizard.
>
>
>
> *From:* xerte-dev-bounces at lists.nottingham.ac.uk [mailto:
> xerte-dev-bounces at lists.nottingham.ac.uk] *On Behalf Of *Kemp Johnathan
> *Sent:* 01 February 2012 19:32
>
>
> *To:* For Xerte technical developers
> *Subject:* [Xerte-dev] Re: Interactive Diagram Page (customHotspots.rlm)
>
>
>
> Thank you for figuring out what was wrong with the mcq part of the page.
>
>
>
> If you check your model file you will find a couple of references to
> "hotspotImage" that should be "customHotspots".
>
>
>
> The format of the xwd newNode line with the inclusion of CDATA (shown in
> blue) to receive the drawing information is different to most other xwd
> files
>
>
>
> <newNodes>
> <customHotspots><![CDATA[<customHotspots name="Enter Page Title"
> text="Enter text for the page here" highlightColour="0xFFFF00"
> lineWidth="1" interactivity="Hotspots" showShapes="true">CDATA
> </customHotspots>]]></customHotspots>
> </newNodes>
>
>
>
> Compared for example to the quiz page equivalent in which there is no
> CDATA entry between the main block and the ending </quiz> tag.
>
>
>
> <newNodes>
> <quiz><![CDATA[<quiz name="Enter Quiz Title" order="random"
> numQuestions="All" align="left" panelWidth="Medium" instructions="Provide
> instructions here" judge="true" feedback="Provide feedback here"/>]]></quiz>
> </newNodes>
>
>
>
> I have performed tests, trying to remove the CDATA but it appears
> essential for holding the drawing data.
>
>
>
> However this in itself appears to be creating an issue in that the
> presence of the CDATA entry prevents the addition of any child data items
> to the page.
>
>
>
> I have tried adding a child item and what happens in the display of the
> xwd form is that the child item is preceded in the page structure display
> at the left of the form by a prior entry which lists as
>
>
>
> [type Function][type Function]
>
>
>
> The child entry is displayed below this and the child data is displayed in
> the form's right-hand panel. However on closing the form the information
> for the child item is lost. If you re-order the sequence so that the child
> item is above the [type Function][type Function] entry, then on closing the
> form the child data is saved but the drawing data is lost.
>
>
>
> Do you know of any way we could get around this so that a child item can
> be added?
>
>
>
> The page contains quite a number of display text that is built into the
> model. e.g. "question 1 of 3", "Explore the diagram, click on the various
> parts to learn more".
>
> To internationalise the page I need to put this text in an author
> modifiable format in the xwd form. I would prefer to have a newNode item
> that could present a form for this data. There are to many entries to add
> them to the main form without producing a very lengthy form. I know I can
> just add the data items to the newNode line for the page but I want also to
> allow the Author to be able to change the default values. I cannot make
> them simply optional properties as they will all display in the main form
> as soon as I include the default values in the newNodes line that creates
> the page. Further I don't want the author to be able to delete the values.
>
>
>
> Anyone any ideas how a child node could be added to this page?
>
>
>
> Kind regards
>
>
>
> Johnathan
>
>
>
> On 1 February 2012 14:05, Fay Cross <Fay.Cross at nottingham.ac.uk> wrote:
>
> Thanks, I’ll add in a brief instruction for this page
>
>
>
> *From:* xerte-dev-bounces at lists.nottingham.ac.uk [mailto:
> xerte-dev-bounces at lists.nottingham.ac.uk] *On Behalf Of *Julian Tenney
> *Sent:* 01 February 2012 13:04
>
>
> *To:* For Xerte technical developers
> *Subject:* [Xerte-dev] Re: Interactive Diagram Page (customHotspots.rlm)
>
>
>
> Add info using <info><![CDATA[Here is page of some stuff]]></info> in the
> xwd.
>
>
>
> It shows in blue text at the bottom of the wizard.
>
>
>
> *From:* xerte-dev-bounces at lists.nottingham.ac.uk [mailto:
> xerte-dev-bounces at lists.nottingham.ac.uk] *On Behalf Of *Fay Cross
> *Sent:* 01 February 2012 11:51
> *To:* For Xerte technical developers
> *Subject:* [Xerte-dev] Re: Interactive Diagram Page (customHotspots.rlm)
>
>
>
> There was a bug – it only worked if you had at least 4 things in the
> diagram.  It’s fixed in the attached version.
>
>
>
> On a different point, I hadn’t looked at this page type before and it took
> me a ridiculously long time to work out how to add the text to go with each
> part of the diagram.  I was convinced there was a new nodes bit missing
> until I found where to put it.  Am I just being a bit slow this morning and
> is it clear to everyone else? Or do you think it needs to have some
> instructions with it – can you add explanatory text to a page in the wizard?
>
>
>
> *From:* xerte-dev-bounces at lists.nottingham.ac.uk [mailto:
> xerte-dev-bounces at lists.nottingham.ac.uk] *On Behalf Of *Kemp Johnathan
> *Sent:* 30 January 2012 13:24
> *To:* Xerte Developers Discussion List
> *Subject:* [Xerte-dev] Re: Interactive Diagram Page (customHotspots.rlm)
>
>
>
> I am about to start extracting the language strings from the rlm file but
> find during prior testing that if I select the mcq option that the page
> just stops responding on preview.
>
>
>
> Is this a known bug? What is supposed to happen?
>
>
>
> I have tested this both in a Page Templates project and in an individual
> page template project using the customHotspots.rlm file and an xwd derived
> from the contents in templates.xwd.
>
>
>
> Kind regards
>
>
>
> Johnathan
>
>
>
> 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
> 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
> 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
> 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/20120202/b326821f/attachment-0001.html>


More information about the Xerte-dev mailing list