/
documentation-html-00344.xml
24 lines (23 loc) · 2.55 KB
/
documentation-html-00344.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?xml version="1.0" encoding="UTF-8"?>
<DocumentationHtmls xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="opencms://system/modules/com.alkacon.opencms.documentation/schemas/documentation-html.xsd">
<DocumentationHtml language="en">
<Html name="Html0">
<links>
<link name="link0" internal="true" type="A">
<target><![CDATA[/sites/default/opencms-documentation/the-opencms-workplace/editors/the-sitemap-editor/]]></target>
<uuid>270e7393-06a0-11e4-909a-1305b26fecac</uuid>
</link>
<link name="link1" internal="true" type="A">
<target><![CDATA[/sites/default/opencms-documentation/the-opencms-workplace/editors/the-page-editor/]]></target>
<uuid>772a450b-02c1-11e4-8167-1305b26fecac</uuid>
</link>
</links>
<content><![CDATA[<p>If you want to set your template for a<em>n existing site or subsite</em><span class="footnote">Of course, you can also create the subsite first using the sitemap editor.</span>, go to the sitemap editor, choose the "Resources" view and select "Properties" from the main folder of the (sub-)site. Then, in the tab "Complete Properties", set the property template to your <code>template</code> by choosing it (via its name "My Template") from the drop-down list.</p>
<ul>
<li><a href="%(link0)">Get more information on the sitemap editor.</a></li>
</ul>
<p>If you want to <em>create a new site</em> that uses your template, use the "Site Management" in the administration view. Choose "New site" and fill out the form, in particular "Title", "Folder name", "Server URL" and "Template". The remaining things can be empty. For "Template" enter <code>provider=org.opencms.loader.CmsDefaultTemplateContextProvider,template=/system/modules/my.template/templates/main.jsp</code>. For "Server URL" you may choose "http://localhost:8081". If you created the site, go to the explorer view and switch to the newly created site. In this site's root folder add an index.html by choosing "New" (see the upper left corner of the explorer view) and selecting "Container page" in the appearing dialog. Click "Continue" and set the file name, thus that is "index.html" in the end.</p>
<p>In order to check, if everything works fine, go to the <code>index.html</code> directly in the main folder of your site or subsite. You should see your template JSP coming up and an edit point in the upper right corner. If you click it, the menu of the <a href="%(link1)">page editor</a> should appear.</p>]]></content>
</Html>
</DocumentationHtml>
</DocumentationHtmls>