<HTML dir=ltr><HEAD><TITLE>RE: [Xerte] RE: question about xerte</TITLE>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<META content="MSHTML 6.00.6000.16850" name=GENERATOR></HEAD>
<BODY>
<DIV id=idOWAReplyText30368 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>I'd look at creating your own model to use in pageTemplates, and modify the .xwd to expose the variables you want. For a simple one, check out the title page model and corresponding section in the .xwd.</FONT></DIV></DIV>
<DIV dir=ltr><BR>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> xerte-bounces@lists.nottingham.ac.uk on behalf of Johnathan Kemp<BR><B>Sent:</B> Tue 07/07/2009 10:25<BR><B>To:</B> Xerte discussion list<BR><B>Subject:</B> RE: [Xerte] RE: question about xerte<BR></FONT><BR></DIV>
<DIV>
<P><FONT size=2>When using models in either templates or xerte toolkits, is it possible<BR>to control the content from the template or toolkit, perhaps by using<BR>the initObject value, or can you only set the content in raw xerte when<BR>you create the model?<BR><BR>For example could you<BR><BR>1. create a model in raw xerte that displayed some text and a graphic.<BR>2. Import the model into a template or toolkit project.<BR>3. Change the text that was displayed.<BR>4. Change the graphic that was displayed, or change graphic properties<BR>such as h, w, x, y.<BR><BR>I am looking to find out how generic I can make a model so that I can<BR>create a model that does something not available from a template, but<BR>which can then be controlled from the template or toolkit. But at<BR>present I don't know enough to create new templates.<BR><BR>Kind regards<BR><BR>Johnathan<BR><BR>Johnathan Kemp<BR>IT Dev. Manager<BR>Connexions Staffordshire<BR>www.cxstaffs.co.uk<BR>01785 355714<BR><BR><BR><BR><BR><BR>-----Original Message-----<BR>From: xerte-bounces@lists.nottingham.ac.uk<BR>[<A href="mailto:xerte-bounces@lists.nottingham.ac.uk">mailto:xerte-bounces@lists.nottingham.ac.uk</A>] On Behalf Of Julian Tenney<BR>Sent: 03 July 2009 13:11<BR>To: Sokratis Iliadis; xerte@lists.nottingham.ac.uk<BR>Subject: [Xerte] RE: question about xerte<BR><BR>Follow these steps and you will see what I mean:<BR><BR>Open Xerte.<BR>Create a new page.<BR>In the page add a text icon<BR>Write some text in it.<BR>Select the page icon<BR>Click 'file, save as model' and save the model<BR><BR>...<BR><BR>Now go back to your template project.<BR>Insert -> Media - >Xerte content<BR>Load up the model you just saved.<BR>Run the piece.<BR><BR>So now you can create custom pages to go alongside those included in the<BR>template. That is what you need to do.<BR><BR>Please address questions to the list.<BR><BR>J<BR><BR>-----Original Message-----<BR>From: Sokratis Iliadis [<A href="mailto:si8189@bristol.ac.uk">mailto:si8189@bristol.ac.uk</A>]<BR>Sent: Friday, July 03, 2009 1:02 PM<BR>To: Julian Tenney<BR>Subject: RE: question about xerte<BR><BR><BR>But i have already installed xerte. i opened xerte and then i choosed<BR>templates->page templates and i work there because i found it easier.<BR>Also i choosed to publish the project from there and upload this to my<BR>web<BR>application. i Just do not know how can i see the source code of my<BR>published pages to put the code you gave me and display the example as<BR>text and not as code.<BR><BR>This may be a stupid question but it is my first touch with<BR>xerte.forgive me.<BR><BR>>From the xerte (not the templates) i tried to do something but when i<BR>published it it did not produce me the web files. i do not know why and<BR>what was my mistake. so i am working with templates wich is more simple.<BR>but if there is a better way let me know please.<BR><BR>Thanks for your time.<BR><BR><BR><BR><BR>On Fri, July 3, 2009 11:33 am, Julian Tenney wrote:<BR>> Sorry - I missed that you were working with templates.<BR>><BR>> You can use Xerte to create a page that does what you want, and then<BR>> save that page as a model. Then upload that page into your project as<BR>> Media -> Xerte Content.<BR>><BR>> That way you can integrte more complex content. You can include flash<BR>> movies in a similar way. Download Xerte from<BR>> www.nottingham.ac.uk/xerte/downloads/setup.exe<BR>><BR>> J<BR>><BR>> -----Original Message-----<BR>> From: Sokratis Iliadis [<A href="mailto:si8189@bristol.ac.uk">mailto:si8189@bristol.ac.uk</A>]<BR>> Sent: Friday, July 03, 2009 11:31 AM<BR>> To: Julian Tenney<BR>> Subject: RE: question about xerte<BR>><BR>> Thanks for your time,<BR>> But where can i find the source code of my project to insert this code<BR>> there.I am working with the xertre template wizard and i cannot find<BR>the<BR>> source code.<BR>><BR>><BR>><BR>><BR>> On Fri, July 3, 2009 8:11 am, Julian Tenney wrote:<BR>>> You need to set the .text property of the text field<BR>>><BR>>> t.txt.html = false;<BR>>> t.txt.text="<>HERE IS CODE<>";<BR>>><BR>>> and then format it with a codey font:<BR>>><BR>>> tf = new TextFormat();<BR>>> tf.font = "Andale Mono";<BR>>> t.setTextFormat(tf);<BR>>><BR>>> J<BR>>><BR>>> -----Original Message-----<BR>>> From: Sokratis Iliadis [<A href="mailto:si8189@bristol.ac.uk">mailto:si8189@bristol.ac.uk</A>]<BR>>> Sent: Thursday, July 02, 2009 11:25 PM<BR>>> To: xerte@lists.nottingham.ac.uk<BR>>> Subject: question about xerte<BR>>><BR>>> Hello,<BR>>><BR>>> I am working with xerte and i am working in xerte template wizard and<BR>> i<BR>>> am<BR>>> trying to make a lesson about javascript.<BR>>> I want to put code in a textbox as example in a tabbed navigator (in<BR>> the<BR>>> text area of the white box).<BR>>> but because is html code with javascript it does not show the code<BR>but<BR>>> the<BR>>> result of code.<BR>>> i am trying to put the code<BR>>> <html><BR>>> <body><BR>>> <script type="text/javascript"><BR>>> document.write("Hello World!");<BR>>> </script><BR>>> </body><BR>>> </html><BR>>><BR>>> and after that i tried with<BR>>><BR>>> &lt;html&gt;<BR>>> &lt;body&gt;<BR>>> &lt;script type=&quot;text/javascript&quot;&gt;<BR>>> document.write(&quot;&lt;h1&gt;Hello World!&lt;/h1&gt;&quot;);<BR>>> &lt;/script&gt;<BR>>> &lt;/body&gt;<BR>>> &lt;/html&gt;<BR>>><BR>>> but in both situations the result is desplaying.<BR>>> I tried tio fnd the source code of my project to put it there but i<BR>>> cannot<BR>>> find the code.<BR>>> i do not know where i can find it.<BR>>> can you please tell me where i can find the source code of my<BR>project.<BR>>> Also what solution can i follow to put the code as text to a tabbed<BR>>> navigator?<BR>>><BR>>> Thanks for your time.<BR>>> forgive me it is my first experiance with xerte.<BR>>><BR>>><BR>>><BR>>> This message has been checked for viruses but the contents of an<BR>>> attachment<BR>>> may still contain software viruses, which could damage your computer<BR>>> system:<BR>>> you are advised to perform your own checks. Email communications with<BR>> the<BR>>> University of Nottingham may be monitored as permitted by UK<BR>> legislation.<BR>>><BR>>><BR>><BR>><BR>> --<BR>><BR>><BR>><BR><BR><BR>--<BR><BR><BR>_______________________________________________<BR>Xerte mailing list<BR>Xerte@lists.nottingham.ac.uk<BR><A href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte">http://lists.nottingham.ac.uk/mailman/listinfo/xerte</A><BR><BR>This email and any files transmitted with it are confidential and are intended solely for the use of the individual(s) or entity(s) to whom they are addressed. All messages are monitored for virus, high risk files and inappropriate content. As a result users should be aware that this mail maybe accessed, read and the right is reserved to reject, return, remove attachments or delete if considered to be inappropriate or unsuitable. Liability cannot be accepted for any loss or damage arising from this email (or any attachments) or from scripts or any virus transmitted.<BR><BR><BR><BR>This communication represents the originator's personal views and opinions, which do not necessarily reflect those of Connexions Staffordshire. If you are not the original recipient or the person responsible for delivering the email to the intended recipient, be advised that you have received this email in error, and that any use, dissemination, forwarding, printing, or copying of this email is strictly prohibited. If you received this email in error, please immediately reply to the sender or notify postmaster@cxstaffs.co.uk<BR><BR><BR><BR><BR><BR>Connexions Staffordshire Limited is registered in England No.4355170<BR><BR>Registered office: Foregate House, 70 Foregate Street, Stafford, Staffordshire, ST16 2PX<BR><BR>_______________________________________________<BR>Xerte mailing list<BR>Xerte@lists.nottingham.ac.uk<BR><A href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte">http://lists.nottingham.ac.uk/mailman/listinfo/xerte</A><BR></FONT></P></DIV></BODY></HTML>