<HTML dir=ltr><HEAD>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<META content="MSHTML 6.00.6000.16890" name=GENERATOR>
<STYLE>
<!--
font-face
        {font-family:"Cambria Math";}
font-face
        {font-family:Calibri;}
font-face
        {font-family:Tahoma;}
font-face
        {font-family:Consolas;}
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {
        color:purple;
        text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
        {
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.5pt;
        font-family:Consolas;}
span.PlainTextChar
        {
        font-family:Consolas;}
span.EmailStyle19
        {
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle20
        {
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle21
        {
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle22
        {
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle23
        {
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle24
        {
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {
        font-size:10.0pt;}
div.Section1
        {page:Section1;}
-->
</STYLE>
</HEAD>
<BODY lang=EN-US vLink=purple link=blue>
<DIV id=idOWAReplyText37240 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>they are in the library of the swf. I need to make a reference somewhere... Page Templates uses most of them - so refer to that .xwd for ones you want to reuse,</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 Paul Beckwith<BR><B>Sent:</B> Mon 07/09/2009 10:22<BR><B>To:</B> 'Xerte discussion list'<BR><B>Subject:</B> RE: [Xerte] Xerte Template Wizard - Adding a Menu Item<BR></FONT><BR></DIV>
<DIV>
<DIV class=Section1>
<P class=MsoNormal><SPAN style="COLOR: #1f497d">Thanks Jules, got it working now…</SPAN></P>
<P class=MsoNormal><SPAN style="COLOR: #1f497d"></SPAN> </P>
<P class=MsoNormal><SPAN style="COLOR: #1f497d">I’m just trying to get my head around where stuff is coming from. For example, where do the icons next to the menu items get loaded? I know how to set them in the .xwd (icon="icButtonBar" etc) but where abouts is that read from?</SPAN></P>
<P class=MsoNormal><SPAN style="COLOR: #1f497d"></SPAN> </P>
<P class=MsoNormal><SPAN style="COLOR: #1f497d">Cheers, </SPAN></P>
<P class=MsoNormal><SPAN style="COLOR: #1f497d"></SPAN> </P>
<P class=MsoNormal><SPAN style="COLOR: #1f497d">P</SPAN></P>
<P class=MsoNormal><SPAN style="COLOR: #1f497d"></SPAN> </P>
<P class=MsoNormal><SPAN style="COLOR: #1f497d"></SPAN> </P>
<DIV>
<DIV style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: #b5c4df 1pt solid; PADDING-LEFT: 0cm; PADDING-BOTTOM: 0cm; BORDER-LEFT: medium none; PADDING-TOP: 3pt; BORDER-BOTTOM: medium none">
<P class=MsoNormal><B><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">From:</SPAN></B><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"> xerte-bounces@lists.nottingham.ac.uk [mailto:xerte-bounces@lists.nottingham.ac.uk] <B>On Behalf Of </B>Julian Tenney<BR><B>Sent:</B> 04 September 2009 11:50<BR><B>To:</B> Xerte discussion list<BR><B>Subject:</B> RE: [Xerte] Xerte Template Wizard - Adding a Menu Item</SPAN></P></DIV></DIV>
<P class=MsoNormal> </P>
<P class=MsoNormal><SPAN lang=EN-GB style="COLOR: #1f497d">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?</SPAN></P>
<P class=MsoNormal><SPAN lang=EN-GB style="COLOR: #1f497d"></SPAN> </P>
<P class=MsoNormal><SPAN lang=EN-GB style="COLOR: #1f497d">Check out the code in the makePages icon (or something) in the entry frame and see what that does. I can’t remember exactly.</SPAN></P>
<P class=MsoNormal><SPAN lang=EN-GB style="COLOR: #1f497d"></SPAN> </P>
<P class=MsoNormal><SPAN lang=EN-GB style="COLOR: #1f497d">If I were adding a new model I would do these things:</SPAN></P>
<P class=MsoNormal><SPAN lang=EN-GB style="COLOR: #1f497d"></SPAN> </P>
<P class=MsoNormal><SPAN lang=EN-GB style="COLOR: #1f497d">Add the xml to newNodes of LO in the .xwd file</SPAN></P>
<P class=MsoNormal><SPAN lang=EN-GB style="COLOR: #1f497d">Add the section for the wizard lower down in the .xwd file</SPAN></P>
<P class=MsoNormal><SPAN lang=EN-GB style="COLOR: #1f497d"></SPAN> </P>
<P class=MsoNormal><SPAN lang=EN-GB style="COLOR: #1f497d">That’s enough to get the xml added and edited to your .xml file – is this happening? Is the XML valid?</SPAN></P>
<P class=MsoNormal><SPAN lang=EN-GB style="COLOR: #1f497d"></SPAN> </P>
<P class=MsoNormal><SPAN lang=EN-GB style="COLOR: #1f497d">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.</SPAN></P>
<P class=MsoNormal><SPAN lang=EN-GB style="COLOR: #1f497d"></SPAN> </P>
<P class=MsoNormal><SPAN lang=EN-GB style="COLOR: #1f497d">Any help?</SPAN></P>
<P class=MsoNormal><SPAN lang=EN-GB style="COLOR: #1f497d"></SPAN> </P>
<P class=MsoNormal><SPAN lang=EN-GB style="COLOR: #1f497d"></SPAN> </P>
<DIV>
<DIV style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: #b5c4df 1pt solid; PADDING-LEFT: 0cm; PADDING-BOTTOM: 0cm; BORDER-LEFT: medium none; PADDING-TOP: 3pt; BORDER-BOTTOM: medium none">
<P class=MsoNormal style="MARGIN-LEFT: 36pt"><B><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">From:</SPAN></B><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"> xerte-bounces@lists.nottingham.ac.uk [mailto:xerte-bounces@lists.nottingham.ac.uk] <B>On Behalf Of </B>Paul Beckwith<BR><B>Sent:</B> Friday, September 04, 2009 11:47 AM<BR><B>To:</B> 'Xerte discussion list'<BR><B>Subject:</B> RE: [Xerte] Xerte Template Wizard - Adding a Menu Item</SPAN></P></DIV></DIV>
<P class=MsoNormal style="MARGIN-LEFT: 36pt"><SPAN lang=EN-GB></SPAN> </P>
<P class=MsoNormal style="MARGIN-LEFT: 36pt"><SPAN style="COLOR: #1f497d">Yeah…</SPAN></P>
<P class=MsoNormal style="MARGIN-LEFT: 36pt"><SPAN style="COLOR: #1f497d"></SPAN> </P>
<P class=MsoNormal style="MARGIN-LEFT: 36pt"><SPAN style="COLOR: #1f497d">It still doesn’t work, I renamed my model to sequence.rlm</SPAN></P>
<P class=MsoNormal style="MARGIN-LEFT: 36pt"><SPAN style="COLOR: #1f497d"></SPAN> </P>
<P class=MsoNormal style="MARGIN-LEFT: 36pt"><SPAN style="COLOR: #1f497d">Anything specific that I need to put in the model? </SPAN></P>
<P class=MsoNormal style="MARGIN-LEFT: 36pt"><SPAN style="COLOR: #1f497d"></SPAN> </P>
<P class=MsoNormal style="MARGIN-LEFT: 36pt"><SPAN style="COLOR: #1f497d">P</SPAN></P>
<P class=MsoNormal style="MARGIN-LEFT: 36pt"><SPAN style="COLOR: #1f497d"></SPAN> </P>
<DIV>
<DIV style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: #b5c4df 1pt solid; PADDING-LEFT: 0cm; PADDING-BOTTOM: 0cm; BORDER-LEFT: medium none; PADDING-TOP: 3pt; BORDER-BOTTOM: medium none">
<P class=MsoNormal style="MARGIN-LEFT: 36pt"><B><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">From:</SPAN></B><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"> xerte-bounces@lists.nottingham.ac.uk [mailto:xerte-bounces@lists.nottingham.ac.uk] <B>On Behalf Of </B>Julian Tenney<BR><B>Sent:</B> 04 September 2009 11:27<BR><B>To:</B> Xerte discussion list<BR><B>Subject:</B> RE: [Xerte] Xerte Template Wizard - Adding a Menu Item</SPAN></P></DIV></DIV>
<P class=MsoNormal style="MARGIN-LEFT: 36pt"> </P>
<P class=MsoNormal style="MARGIN-LEFT: 36pt"><SPAN lang=EN-GB style="COLOR: #1f497d">The model will need the same name as the xml tag:</SPAN></P>
<P class=MsoNormal style="MARGIN-LEFT: 36pt"><SPAN lang=EN-GB style="COLOR: #1f497d"></SPAN> </P>
<P class=MsoNormal style="MARGIN-LEFT: 36pt"><SPAN lang=EN-GB style="COLOR: #1f497d"><MyModel…/></SPAN></P>
<P class=MsoNormal style="MARGIN-LEFT: 36pt"><SPAN lang=EN-GB style="COLOR: #1f497d"></SPAN> </P>
<P class=MsoNormal style="MARGIN-LEFT: 36pt"><SPAN lang=EN-GB style="COLOR: #1f497d">myModel.rlm</SPAN></P>
<P class=MsoNormal style="MARGIN-LEFT: 36pt"><SPAN lang=EN-GB style="COLOR: #1f497d"></SPAN> </P>
<P class=MsoNormal style="MARGIN-LEFT: 36pt"><SPAN lang=EN-GB style="COLOR: #1f497d">I take it you are extending Page Templates?</SPAN></P>
<P class=MsoNormal style="MARGIN-LEFT: 36pt"><SPAN lang=EN-GB style="COLOR: #1f497d"></SPAN> </P>
<DIV>
<DIV style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: #b5c4df 1pt solid; PADDING-LEFT: 0cm; PADDING-BOTTOM: 0cm; BORDER-LEFT: medium none; PADDING-TOP: 3pt; BORDER-BOTTOM: medium none">
<P class=MsoNormal style="MARGIN-LEFT: 72pt"><B><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">From:</SPAN></B><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"> xerte-bounces@lists.nottingham.ac.uk [mailto:xerte-bounces@lists.nottingham.ac.uk] <B>On Behalf Of </B>Paul Beckwith<BR><B>Sent:</B> Friday, September 04, 2009 11:09 AM<BR><B>To:</B> 'Xerte discussion list'<BR><B>Subject:</B> RE: [Xerte] Xerte Template Wizard - Adding a Menu Item</SPAN></P></DIV></DIV>
<P class=MsoNormal style="MARGIN-LEFT: 72pt"><SPAN lang=EN-GB></SPAN> </P>
<P class=MsoNormal style="MARGIN-LEFT: 72pt"><SPAN style="COLOR: #1f497d">Thanks Jules, it pops up In the menu now…</SPAN></P>
<P class=MsoNormal style="MARGIN-LEFT: 72pt"><SPAN style="COLOR: #1f497d"></SPAN> </P>
<P class=MsoNormal style="MARGIN-LEFT: 72pt"><SPAN style="COLOR: #1f497d">it doesn’t actually do anything and just says [type,function]. How do I link it up to the model that I’m making? </SPAN></P>
<P class=MsoNormal style="MARGIN-LEFT: 72pt"><SPAN style="COLOR: #1f497d"></SPAN> </P>
<P class=MsoNormal style="MARGIN-LEFT: 72pt"><SPAN style="COLOR: #1f497d">P</SPAN></P>
<P class=MsoNormal style="MARGIN-LEFT: 72pt"><SPAN style="COLOR: #1f497d"></SPAN> </P>
<DIV>
<DIV style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: #b5c4df 1pt solid; PADDING-LEFT: 0cm; PADDING-BOTTOM: 0cm; BORDER-LEFT: medium none; PADDING-TOP: 3pt; BORDER-BOTTOM: medium none">
<P class=MsoNormal style="MARGIN-LEFT: 72pt"><B><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">From:</SPAN></B><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"> xerte-bounces@lists.nottingham.ac.uk [mailto:xerte-bounces@lists.nottingham.ac.uk] <B>On Behalf Of </B>Julian Tenney<BR><B>Sent:</B> 04 September 2009 10:36<BR><B>To:</B> Xerte discussion list<BR><B>Subject:</B> RE: [Xerte] Xerte Template Wizard - Adding a Menu Item</SPAN></P></DIV></DIV>
<P class=MsoNormal style="MARGIN-LEFT: 72pt"> </P>
<P class=MsoNormal style="MARGIN-LEFT: 72pt"><SPAN lang=EN-GB style="COLOR: #1f497d">Add the initial xml you want inserted to the newNodes element of the LO tag</SPAN></P>
<P class=MsoNormal style="MARGIN-LEFT: 72pt"><SPAN lang=EN-GB style="COLOR: #1f497d"></SPAN> </P>
<DIV>
<DIV style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: #b5c4df 1pt solid; PADDING-LEFT: 0cm; PADDING-BOTTOM: 0cm; BORDER-LEFT: medium none; PADDING-TOP: 3pt; BORDER-BOTTOM: medium none">
<P class=MsoNormal style="MARGIN-LEFT: 108pt"><B><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">From:</SPAN></B><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"> xerte-bounces@lists.nottingham.ac.uk [mailto:xerte-bounces@lists.nottingham.ac.uk] <B>On Behalf Of </B>Paul Beckwith<BR><B>Sent:</B> Friday, September 04, 2009 10:13 AM<BR><B>To:</B> 'Xerte discussion list'<BR><B>Subject:</B> [Xerte] Xerte Template Wizard - Adding a Menu Item</SPAN></P></DIV></DIV>
<P class=MsoNormal style="MARGIN-LEFT: 108pt"><SPAN lang=EN-GB></SPAN> </P>
<P class=MsoPlainText style="MARGIN-LEFT: 108pt"><SPAN lang=EN-GB>Hi everyone, </SPAN></P>
<P class=MsoPlainText style="MARGIN-LEFT: 108pt"><SPAN lang=EN-GB style="COLOR: black"></SPAN> </P>
<P class=MsoPlainText style="MARGIN-LEFT: 108pt"><SPAN lang=EN-GB style="COLOR: black">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:</SPAN></P>
<P class=MsoPlainText style="MARGIN-LEFT: 108pt"><SPAN lang=EN-GB style="COLOR: black"></SPAN> </P>
<P class=MsoPlainText style="MARGIN-LEFT: 108pt"><SPAN lang=EN-GB style="COLOR: black"> <fls_sequence menu="Navigators" menuItem="FLS1" icon="icSequence" hint="An image pops up followed by text to explain it." sortChildren="true"></SPAN></P>
<P class=MsoPlainText style="MARGIN-LEFT: 108pt"><SPAN lang=EN-GB style="COLOR: black"> <name type="TextInput" label="Text" /></SPAN></P>
<P class=MsoPlainText style="MARGIN-LEFT: 108pt"><SPAN lang=EN-GB style="COLOR: black"> <text type="TextArea" height="250" label="Text" /></SPAN></P>
<P class=MsoPlainText style="MARGIN-LEFT: 108pt"><SPAN lang=EN-GB style="COLOR: black"> </fls_sequence></SPAN></P>
<P class=MsoPlainText style="MARGIN-LEFT: 108pt"><SPAN lang=EN-GB style="COLOR: black"></SPAN> </P>
<P class=MsoPlainText style="MARGIN-LEFT: 108pt"><SPAN lang=EN-GB style="COLOR: black">What else do I need to do?</SPAN></P>
<P class=MsoPlainText style="MARGIN-LEFT: 108pt"><SPAN lang=EN-GB style="COLOR: black"></SPAN> </P>
<P class=MsoPlainText style="MARGIN-LEFT: 108pt"><SPAN lang=EN-GB style="COLOR: black">Cheers, </SPAN></P>
<P class=MsoPlainText style="MARGIN-LEFT: 108pt"><SPAN lang=EN-GB style="COLOR: black"></SPAN> </P>
<P class=MsoPlainText style="MARGIN-LEFT: 108pt"><SPAN lang=EN-GB style="COLOR: black">Paul</SPAN></P>
<P class=MsoNormal style="MARGIN-LEFT: 108pt"><SPAN lang=EN-GB></SPAN> </P>
<P class=MsoNormal style="MARGIN-LEFT: 108pt"><SPAN lang=EN-GB></SPAN> </P>
<P class=MsoNormal style="MARGIN-LEFT: 108pt"><SPAN lang=EN-GB></SPAN> </P>
<P class=MsoNormal style="MARGIN-LEFT: 108pt"><SPAN lang=EN-GB></SPAN> </P>
<P class=MsoNormal style="MARGIN-LEFT: 108pt"><SPAN lang=EN-GB> </SPAN></P></DIV></DIV></BODY></HTML>