[Xerte-dev] Re: Getting the page name and title to work in Xerte individual page templates
Julian Tenney
Julian.Tenney at nottingham.ac.uk
Tue Mar 13 14:24:00 GMT 2012
I'm struggling for time to be honest, things here are pretty mental. BY all mean have a look in the source code: you'll need the mdm.forms.callfunction to call one function in a form from another form, there are examples in there,
From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Kemp Johnathan
Sent: 13 March 2012 13:56
To: Xerte Developers Discussion List
Subject: [Xerte-dev] Getting the page name and title to work in Xerte individual page templates
At present in the desktop xerte with individual page templates, Xerte gets the page title for display in the TOC and top left corner of the screen from the "title" property of the page icon and not from the "name" field of the xml data.
Attempts to pass this data over at runtime have so far failed, resulting in incorrect page titles displayed and unidentified being displayed in the toc.
Would it be possible to modify the code that handles the xwd files so that it wrote to the page icon's "title" property, the data for the xwd "name" field on closure of the xwd form. If that was possible it would solve all the runtime problems as the title property value would match the xwd data name value. If the "name" property of the page icon was also set to data for the xwd's "name" field then this would also help the developer as the project tree would also reflect the page name from the xwd data.
Kind regards
Johnathan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte-dev/attachments/20120313/3e68ab4f/attachment.html>
More information about the Xerte-dev
mailing list