<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<div class=Section1>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Hi Chris, <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Thank you for your really helpful answer.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Rui<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=3 face="Times New Roman"><span lang=PT style='font-size:12.0pt'>
<hr size=2 width="100%" align=center tabindex=-1>
</span></font></div>
<p class=MsoNormal><b><font size=2 face=Tahoma><span lang=PT style='font-size:
10.0pt;font-family:Tahoma;font-weight:bold'>De:</span></font></b><font size=2 face=Tahoma><span lang=PT style='font-size:10.0pt;font-family:Tahoma'> Chris
Claydon (via Nabble) [mailto:<a href="http://n2.nabble.com/user/SendEmail.jtp?type=node&node=2258381&i=0" target="_top" rel="nofollow">ml-user+65645-808512115@...</a>] <br>
<b><span style='font-weight:bold'>Enviada:</span></b> 02 February 2009 15:11<br>
<b><span style='font-weight:bold'>Para:</span></b> Rui Daniro<br>
<b><span style='font-weight:bold'>Assunto:</span></b> RE: [mapguide-users] Add
new template layout to Mapguide Studio</span></font><span lang=PT><o:p></o:p></span></p>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>Indeed there is! Studio
obtains the list of available templates by calling the
ENUMERATEAPPLICATIONTEMPLATES HTTP operation. If you're curious to see the
response, you can submit the request from the "Web Applications"
section of the web tier test pages. <br>
<br>
The information returned comes from the template info files stored in the
www/fusion/templates/mapguide folder in the web tier installation. In this
folder you'll see XML files called slate.xml, aqua.xml, maroon.xml,
limegold.xml and turquoiseyellow.xml. These correspond to the 5 standard
templates you can see in Studio. <br>
<br>
To get another template to show up in Studio, all you need to do is drop your
own XML template info file into this folder. <br>
<br>
The content of the Slate template info file is shown below. For your own
template, you should: <br>
<br>
1) Pick a unique <Name> value <br>
2) Set the LocationUrl to point to the main HTML page in your template <br>
3) Set the <Description> - This shows up in a tooltip when you hover over
the template in Studio <br>
4) Create a 126x96 preview image for your template, and set its URL in the
PreviewImageUrl field. <br>
5) Define <Panel> entries for each of the IDs that you want to be able to
assign components to in Studio - if you've based your custom template on one of
the existing MG templates, you may not need to change the existing entries. <br>
<br>
You shouldn't need to re-start anything to get the template to show up in
Studio, just right-click in the list of existing templates and choose
"Refresh". If you've got everything set up correctly, your new
template should show up in the list. Let me know if you run into any problems. <br>
<br>
Chris. <br>
<br>
<TemplateInfo> <br>
<Name>Slate</Name> <br>
<LocationUrl>fusion/templates/mapguide/slate/index.html</LocationUrl>
<br>
<Description>Slate template</Description> <br>
<PreviewImageUrl>fusion/templates/mapguide/slate/preview.png</PreviewImageUrl>
<br>
<br>
<Panel> <br>
<Name>FileMenu</Name> <br>
<Label>Toolbar (Main Menu)</Label> <br>
<Description>The horizontal menu bar displayed at the top of the
screen</Description> <br>
</Panel> <br>
<br>
<Panel> <br>
<Name>Toolbar</Name> <br>
<Label>Toolbar (Primary)</Label> <br>
<Description>The main toolbar, displayed across the top of the
map</Description> <br>
</Panel> <br>
<br>
<Panel> <br>
<Name>ToolbarSecondary</Name> <br>
<Label>Toolbar (Secondary)</Label> <br>
<Description>The secondary toolbar, displayed beneath the main
toolbar</Description> <br>
</Panel> <br>
<br>
<Panel> <br>
<Name>Statusbar</Name> <br>
<Label>Status Bar</Label> <br>
<Description>The status bar, displayed below the map</Description> <br>
</Panel> <br>
<br>
<Panel> <br>
<Name>Map</Name> <br>
<Label>Map</Label> <br>
<Description>The main map display</Description> <br>
</Panel> <br>
<br>
<Panel> <br>
<Name>OverviewMap</Name> <br>
<Label>Map (Overview)</Label> <br>
<Description>The dialog containing the overview map</Description> <br>
</Panel> <br>
<br>
<Panel> <br>
<Name>TaskPane</Name> <br>
<Label>Task Pane</Label> <br>
<Description>The panel displaying the task pane</Description> <br>
</Panel> <br>
<br>
<Panel> <br>
<Name>Legend</Name> <br>
<Label>Legend</Label> <br>
<Description>The panel displaying the legend</Description> <br>
</Panel> <br>
<br>
<Panel> <br>
<Name>SelectionPanel</Name> <br>
<Label>Selection Panel</Label> <br>
<Description>The panel displaying current selection</Description> <br>
</Panel> <br>
<br>
<Panel> <br>
<Name>Navigator</Name> <br>
<Label>Navigator (Zoom Slider)</Label> <br>
<Description>The navigator and zoom slider</Description> <br>
</Panel> <br>
<br>
</TemplateInfo> <br>
<br>
<br>
-----Original Message----- <br>
From: <a href="http://n2.nabble.com/user/SendEmail.jtp?type=node&node=2258365&i=0" target="_top" rel="nofollow">mapguide-users-bounces@...</a> [mailto:<a href="http://n2.nabble.com/user/SendEmail.jtp?type=node&node=2258365&i=1" target="_top" rel="nofollow">mapguide-users-bounces@...</a>] On Behalf Of Rui Daniro <br>
Sent: Monday, February 02, 2009 5:18 AM <br>
To: <a href="http://n2.nabble.com/user/SendEmail.jtp?type=node&node=2258365&i=2" target="_top" rel="nofollow">mapguide-users@...</a> <br>
Subject: [mapguide-users] Add new template layout to Mapguide Studio <br>
<br>
<br>
I would like to know if there is a way to add a new template layout to the <br>
existent list on Mapguide Studio? <br>
-- <br>
View this message in context: <a href="http://n2.nabble.com/Add-new-template-layout-to-Mapguide-Studio-tp2257619p2257619.html" target="_top" rel="nofollow">http://n2.nabble.com/Add-new-template-layout-to-Mapguide-Studio-tp2257619p2257619.html</a><br>
Sent from the MapGuide Users mailing list archive at Nabble.com. <br>
<br>
_______________________________________________ <br>
mapguide-users mailing list <br>
<a href="http://n2.nabble.com/user/SendEmail.jtp?type=node&node=2258365&i=3" target="_top" rel="nofollow">mapguide-users@...</a> <br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapguide-users" target="_top" rel="nofollow">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a><br>
_______________________________________________ <br>
mapguide-users mailing list <br>
<a href="http://n2.nabble.com/user/SendEmail.jtp?type=node&node=2258365&i=4" target="_top" rel="nofollow">mapguide-users@...</a> <br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapguide-users" target="_top" rel="nofollow">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a><br>
<br>
<o:p></o:p></span></font></p>
<div class=MsoNormal align=center style='text-align:center'><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>
<hr size=1 width="100%" noshade color="#cccccc" align=center>
</span></font></div>
<div>
<p class=MsoNormal><font size=1 color="#666666" face=Tahoma><span style='font-size:8.5pt;font-family:Tahoma;color:#666666'>This email is a reply
to your post @ <a href="http://n2.nabble.com/Add-new-template-layout-to-Mapguide-Studio-tp2257619p2258365.html" target="_top" rel="nofollow">http://n2.nabble.com/Add-new-template-layout-to-Mapguide-Studio-tp2257619p2258365.html</a><br>
You can reply by email or by visting the link above.<o:p></o:p></span></font></p>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
</div>
<br><hr align="left" width="300">
View this message in context: <a href="http://n2.nabble.com/Add-new-template-layout-to-Mapguide-Studio-tp2257619p2258381.html">RE: [mapguide-users] Add new template layout to Mapguide Studio</a><br>
Sent from the <a href="http://n2.nabble.com/MapGuide-Users-f1803227.html">MapGuide Users mailing list archive</a> at Nabble.com.<br>