<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 -&gt; Media - &gt;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-&gt;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>&gt;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>&gt; Sorry - I missed that you were working with templates.<BR>&gt;<BR>&gt; You can use Xerte to create a page that does what you want, and then<BR>&gt; save that page as a model. Then upload that page into your project as<BR>&gt; Media -&gt; Xerte Content.<BR>&gt;<BR>&gt; That way you can integrte more complex content. You can include flash<BR>&gt; movies in a similar way. Download Xerte from<BR>&gt; www.nottingham.ac.uk/xerte/downloads/setup.exe<BR>&gt;<BR>&gt; J<BR>&gt;<BR>&gt; -----Original Message-----<BR>&gt; From: Sokratis Iliadis [<A href="mailto:si8189@bristol.ac.uk">mailto:si8189@bristol.ac.uk</A>]<BR>&gt; Sent: Friday, July 03, 2009 11:31 AM<BR>&gt; To: Julian Tenney<BR>&gt; Subject: RE: question about xerte<BR>&gt;<BR>&gt; Thanks for your time,<BR>&gt; But where can i find the source code of my project to insert this code<BR>&gt; there.I am working with the xertre template wizard and i cannot find<BR>the<BR>&gt; source code.<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt; On Fri, July 3, 2009 8:11 am, Julian Tenney wrote:<BR>&gt;&gt; You need to set the .text property of the text field<BR>&gt;&gt;<BR>&gt;&gt; t.txt.html = false;<BR>&gt;&gt; t.txt.text="&lt;&gt;HERE IS CODE&lt;&gt;";<BR>&gt;&gt;<BR>&gt;&gt; and then format it with a codey font:<BR>&gt;&gt;<BR>&gt;&gt; tf = new TextFormat();<BR>&gt;&gt; tf.font = "Andale Mono";<BR>&gt;&gt; t.setTextFormat(tf);<BR>&gt;&gt;<BR>&gt;&gt; J<BR>&gt;&gt;<BR>&gt;&gt; -----Original Message-----<BR>&gt;&gt; From: Sokratis Iliadis [<A href="mailto:si8189@bristol.ac.uk">mailto:si8189@bristol.ac.uk</A>]<BR>&gt;&gt; Sent: Thursday, July 02, 2009 11:25 PM<BR>&gt;&gt; To: xerte@lists.nottingham.ac.uk<BR>&gt;&gt; Subject: question about xerte<BR>&gt;&gt;<BR>&gt;&gt; Hello,<BR>&gt;&gt;<BR>&gt;&gt; I am working with xerte and i am working in xerte template wizard and<BR>&gt; i<BR>&gt;&gt; am<BR>&gt;&gt; trying to make a lesson about javascript.<BR>&gt;&gt; I want to put code in a textbox as example in a tabbed navigator (in<BR>&gt; the<BR>&gt;&gt; text area of the white box).<BR>&gt;&gt; but because is html code with javascript it does not show the code<BR>but<BR>&gt;&gt; the<BR>&gt;&gt; result of code.<BR>&gt;&gt; i am trying to put the code<BR>&gt;&gt; &lt;html&gt;<BR>&gt;&gt; &lt;body&gt;<BR>&gt;&gt; &lt;script type="text/javascript"&gt;<BR>&gt;&gt; document.write("Hello World!");<BR>&gt;&gt; &lt;/script&gt;<BR>&gt;&gt; &lt;/body&gt;<BR>&gt;&gt; &lt;/html&gt;<BR>&gt;&gt;<BR>&gt;&gt; and after that i tried with<BR>&gt;&gt;<BR>&gt;&gt; &amp;lt;html&amp;gt;<BR>&gt;&gt; &amp;lt;body&amp;gt;<BR>&gt;&gt; &amp;lt;script type=&amp;quot;text/javascript&amp;quot;&amp;gt;<BR>&gt;&gt; document.write(&amp;quot;&amp;lt;h1&amp;gt;Hello World!&amp;lt;/h1&amp;gt;&amp;quot;);<BR>&gt;&gt; &amp;lt;/script&amp;gt;<BR>&gt;&gt; &amp;lt;/body&amp;gt;<BR>&gt;&gt; &amp;lt;/html&amp;gt;<BR>&gt;&gt;<BR>&gt;&gt; but in both situations the result is desplaying.<BR>&gt;&gt; I tried tio fnd the source code of my project to put it there but i<BR>&gt;&gt; cannot<BR>&gt;&gt; find the code.<BR>&gt;&gt; i do not know where i can find it.<BR>&gt;&gt; can you please tell me where i can find the source code of my<BR>project.<BR>&gt;&gt; Also what solution can i follow to put the code as text to a tabbed<BR>&gt;&gt; navigator?<BR>&gt;&gt;<BR>&gt;&gt; Thanks for your time.<BR>&gt;&gt; forgive me it is my first experiance with xerte.<BR>&gt;&gt;<BR>&gt;&gt;<BR>&gt;&gt;<BR>&gt;&gt; This message has been checked for viruses but the contents of an<BR>&gt;&gt; attachment<BR>&gt;&gt; may still contain software viruses, which could damage your computer<BR>&gt;&gt; system:<BR>&gt;&gt; you are advised to perform your own checks. Email communications with<BR>&gt; the<BR>&gt;&gt; University of Nottingham may be monitored as permitted by UK<BR>&gt; legislation.<BR>&gt;&gt;<BR>&gt;&gt;<BR>&gt;<BR>&gt;<BR>&gt; --<BR>&gt;<BR>&gt;<BR>&gt;<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>