[Xerte] Xerte Template Wizard - Adding a Menu Item
Julian Tenney
Julian.Tenney at nottingham.ac.uk
Fri Sep 4 11:50:24 BST 2009
Add a debug script to it and see if it is getting loaded properly - do
you get 1 / 1 in the controls? Can you fnd out otherwise if it is
loading?
Check out the code in the makePages icon (or something) in the entry
frame and see what that does. I can't remember exactly.
If I were adding a new model I would do these things:
Add the xml to newNodes of LO in the .xwd file
Add the section for the wizard lower down in the .xwd file
That's enough to get the xml added and edited to your .xml file - is
this happening? Is the XML valid?
Then create the model. If you look at the other models, you'll see they
all have a small section of common code in the first script: that gets
the templateData for that particular page so you can use it conveniently
in your model code, and some other stuff: see what it does.
Any help?
From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Paul Beckwith
Sent: Friday, September 04, 2009 11:47 AM
To: 'Xerte discussion list'
Subject: RE: [Xerte] Xerte Template Wizard - Adding a Menu Item
Yeah...
It still doesn't work, I renamed my model to sequence.rlm
Anything specific that I need to put in the model?
P
From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney
Sent: 04 September 2009 11:27
To: Xerte discussion list
Subject: RE: [Xerte] Xerte Template Wizard - Adding a Menu Item
The model will need the same name as the xml tag:
<MyModel.../>
myModel.rlm
I take it you are extending Page Templates?
From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Paul Beckwith
Sent: Friday, September 04, 2009 11:09 AM
To: 'Xerte discussion list'
Subject: RE: [Xerte] Xerte Template Wizard - Adding a Menu Item
Thanks Jules, it pops up In the menu now...
it doesn't actually do anything and just says [type,function]. How do I
link it up to the model that I'm making?
P
From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney
Sent: 04 September 2009 10:36
To: Xerte discussion list
Subject: RE: [Xerte] Xerte Template Wizard - Adding a Menu Item
Add the initial xml you want inserted to the newNodes element of the LO
tag
From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Paul Beckwith
Sent: Friday, September 04, 2009 10:13 AM
To: 'Xerte discussion list'
Subject: [Xerte] Xerte Template Wizard - Adding a Menu Item
Hi everyone,
I am trying to build my own interaction for the Xerte template wizard...
currently I'm a bit stuck on actually adding the item to the insert
menu. I've added the following into the XML:
<fls_sequence menu="Navigators" menuItem="FLS1" icon="icSequence"
hint="An image pops up followed by text to explain it."
sortChildren="true">
<name type="TextInput" label="Text" />
<text type="TextArea" height="250" label="Text" />
</fls_sequence>
What else do I need to do?
Cheers,
Paul
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20090904/6e598069/attachment.html
More information about the Xerte
mailing list