[Xerte-dev] Re: Displaying the page title in the TOC in desktop Xerte.
Kemp Johnathan
johnathan.kemp at ntlworld.com
Fri May 25 18:18:18 BST 2012
Thanks Tom,
Kind regards
Johnathan
On 25 May 2012 18:08, Tom Reijnders <reijnders at tor.nl> wrote:
> Jonathan,
>
> I'll have a look. If it's easy to do I will. Problem is that at the moment
> there is no need for the editor to access the xml file. So I need to add
> that in order to implement this. Like I said, if that's easy to do, I wil.
>
> Op 25-5-2012 17:41, Julian Tenney schreef:
>
> Hiya, given I am consistently not getting time to do the things I’ve
> already commited myself to, this is going to have to be something you’ll
> have to look into yourself. But if you can do those tow ifs, then you can
> easily write a function in the editor to set the attribute, and you can
> easily call that fom the wizard. What you need to resolve is how to know
> if(xerte) && if (pages)
>
>
>
> *From:* xerte-dev-bounces at lists.nottingham.ac.uk [
> mailto:xerte-dev-bounces at lists.nottingham.ac.uk<xerte-dev-bounces at lists.nottingham.ac.uk>]
> *On Behalf Of *Kemp Johnathan
> *Sent:* 25 May 2012 14:07
> *To:* For Xerte technical developers
> *Subject:* [Xerte-dev] Re: Displaying the page title in the TOC in
> desktop Xerte.
>
>
>
> I would guess not.
>
>
>
> I don't know if Tom put anything in when you select to create a project of
> type "pages".
>
>
>
> At present there is a value set in a setup script off the entryFrame
>
>
>
> rootIcon.projMode = "dev";
>
>
>
> which is used to tell the model files that they are not in XOT or
> pageTemplates.
>
>
>
> However if there is something being flagged in the "pages" type projects
> that would be accessible to the page scripts then this might be a better
> solution also for triggering the models than having something in the setup
> script.
>
>
>
> Kind regards
>
>
>
> Johnathan
>
>
>
> On 25 May 2012 14:00, Julian Tenney <Julian.Tenney at nottingham.ac.uk>
> wrote:
>
> Does the wizard know about projectType?
>
>
>
> *From:* xerte-dev-bounces at lists.nottingham.ac.uk [mailto:
> xerte-dev-bounces at lists.nottingham.ac.uk] *On Behalf Of *Kemp Johnathan
> *Sent:* 25 May 2012 13:59
> *To:* For Xerte technical developers
> *Subject:* [Xerte-dev] Re: Displaying the page title in the TOC in
> desktop Xerte.
>
>
>
> I think it could be even simpler than that.
>
>
>
> on closure of xwd form
>
> If (projectType == "pages") {
>
> access xml for name value of first element;
>
> write name value of first element into page Icon's page title property;
>
> }
>
>
>
> I wouldn't bother even checking if the name value has changed unless the
> overhead of doing the process was significant. Removing the check makes the
> process quicker and It's not taking place when viewing the project so it
> won't slow down the learner experience one jot.
>
>
>
> Kind regards
>
>
>
> Johnathan
>
>
>
> On 25 May 2012 13:25, Julian Tenney <Julian.Tenney at nottingham.ac.uk>
> wrote:
>
> Can you suggest a process?
>
>
>
> When the name attribute changes in the wizard if (xerte) and if (pages)
> call some function in the editor to set the property?
>
>
>
> *From:* xerte-dev-bounces at lists.nottingham.ac.uk [mailto:
> xerte-dev-bounces at lists.nottingham.ac.uk] *On Behalf Of *Kemp Johnathan
> *Sent:* 25 May 2012 12:33
> *To:* Xerte Developers Discussion List
> *Subject:* [Xerte-dev] Displaying the page title in the TOC in desktop
> Xerte.
>
>
>
> Having read recent postings it looks like some work is taking place on the
> various flash files that drive Xerte.
>
>
>
> One of the outstanding items that needs a solution is how the "name" value
> in a page's xml data can be made to display as the page title, both in the
> top left of the Xerte screen and in the TOC.
>
>
>
> I think this is resolved in XOT because the pages are created at runtime
> from the XML data, but in "pages" projects this is not the case.
>
>
>
> I can add a couple of lines to every model that will display the "name"
> value from the XML data for the page as the page title in the top left
> corner, but it still won't appear in the TOC.
>
>
>
> Currently desktop Xerte takes the value entered in the Page's Title
> property in the Page's property page as the value to display in the TOC and
> top left of the screen. If there was a way that Xerte, on closure of the
> xwd form could access the "name" value of the top element in the page's xml
> data, and then write this to the page's "title" property, then both the
> display of the page title in the TOC and in the top left corner of the
> screen would be resolved without any change to the models.
>
>
>
> Is this doable?
>
>
>
> 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 listXerte-dev at lists.nottingham.ac.ukhttp://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.
>
>
>
> --
> --
>
> Tom Reijnders
> TOR Informatica
> Chopinlaan 27
> 5242HM Rosmalen
> Tel: 073 5226191
> Fax: 073 5226196
>
>
>
> _______________________________________________
> 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/20120525/c9d38869/attachment-0001.html>
More information about the Xerte-dev
mailing list