[Xerte] RE: question about xerte

Johnathan Kemp johnathan.kemp at cxstaffs.co.uk
Tue Jul 7 10:25:24 BST 2009


When using models in either templates or xerte toolkits, is it possible
to control the content from the template or toolkit, perhaps by using
the initObject value, or can you only set the content in raw xerte when
you create the model?

For example could you 

1. create a model in raw xerte that displayed some text and a graphic.
2. Import the model into a template or toolkit project.
3. Change the text that was displayed.
4. Change the graphic that was displayed, or change graphic properties
such as h, w, x, y. 

I am looking to find out how generic I can make a model so that I can
create a model that does something not available from a template, but
which can then be controlled from the template or toolkit. But at
present I don't know enough to create new templates.

Kind regards

Johnathan

Johnathan Kemp
IT Dev. Manager
Connexions Staffordshire
www.cxstaffs.co.uk
01785 355714


 


-----Original Message-----
From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney
Sent: 03 July 2009 13:11
To: Sokratis Iliadis; xerte at lists.nottingham.ac.uk
Subject: [Xerte] RE: question about xerte

Follow these steps and you will see what I mean:

Open Xerte.
Create a new page.
In the page add a text icon
Write some text in it.
Select the page icon
Click 'file, save as model' and save the model

...

Now go back to your template project.
Insert -> Media - >Xerte content
Load up the model you just saved.
Run the piece.

So now you can create custom pages to go alongside those included in the
template. That is what you need to do.

Please address questions to the list.

J

-----Original Message-----
From: Sokratis Iliadis [mailto:si8189 at bristol.ac.uk]
Sent: Friday, July 03, 2009 1:02 PM
To: Julian Tenney
Subject: RE: question about xerte


But i have already installed xerte. i opened xerte and then i choosed
templates->page templates and i work there because i found it easier.
Also i choosed to publish the project from there and upload this to my
web
application. i Just do not know how can i see the source code of my
published pages to put the code you gave me and display the example as
text and not as code.

This may be a stupid question but it is my first touch with
xerte.forgive me.

>From the xerte (not the templates) i tried to do something but when i
published it it did not produce me the web files. i do not know why and
what was my mistake. so i am working with templates wich is more simple.
but if there is a better way let me know please.

Thanks for your time.




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

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.

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 at cxstaffs.co.uk


Connexions Staffordshire Limited is registered in England No.4355170
Registered office: Foregate House, 70 Foregate Street, Stafford, Staffordshire, ST16 2PX



More information about the Xerte mailing list