[opencms-dev] How to set a default-template for a page with free text?

Marc Johnen opencms at johnen.biz
Tue Jan 27 21:50:27 CET 2009


Just in case anyone cares, I solved the problem:

in opencms-vfs.xml edit:
                                <type
class="org.opencms.file.types.CmsResourceTypeXmlPage" name="xmlpage" id="6">
                                        <properties>
                                                <property>
                                                       
<name>Template</name>
                                                        <value
type="shared"><![CDATA[mytemplate]]></value>
                                                </property>
                                                <property>
                                                       
<name>template</name>
                                                        <value
type="shared"><![CDATA[/system/modules/mypage/templates/mytemplate]]></value>
                                                </property>
                                        </properties>
                                </type>

This will be overwritten by
/system/workplace/commons/newresource_xmlpage.jsp,
so I commented out the part:
<!--tr>
	<td style="white-space: nowrap;" unselectable="on"><%=
wp.key(Messages.GUI_SELECT_TEMPLATE_0) %></td>
	<td class="maxwidth"><%= wp.buildSelectTemplates("name=\"" +
wp.PARAM_TEMPLATE + "\" class=\"maxwidth noborder\"") %></td>
</tr--> 


-- 
View this message in context: http://www.nabble.com/How-to-set-a-default-template-for-a-page-with-free-text--tp21674244p21694081.html
Sent from the OpenCMS - Dev mailing list archive at Nabble.com.




More information about the opencms-dev mailing list