[opencms-dev] Is this a bug or not?
Bas van der Meijden
b.vandermeijden at pecoma.nl
Thu Dec 12 11:06:04 CET 2002
Hi all,
I'm trying to build a navigation element. To do so I want to use some custom
properties that I added to my resources. I've been able to make the
navigation element, but when I look at the output of the template all calls
to the methods for getting the custom properties (eg getPropertyCurrent and
getPropertyParent) return empty strings.
Am I doing something completely stupid or is this a (known) bug?
I've seen this in both OpenCMS 4.6.1 and 5.0 beta. I'm running OpenCMS on a
win2k server with IIS 5 and Tomcat 4.0.6, JDK 1.4.1 and MySQL 3.23.
Below you can find my navigation element and and its definition and usage in
my frametemplate.
Could someone please have a look at it? Thanks in advance.
Best regards,
Bas van der Meijden
Pecoma Informatica BV
Amsterdam, The Netherlands
In the frametemplate I use and define the element nav with:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
<ELEMENT name="nav"/>
<ELEMENTDEF name="nav">
<CLASS>com.opencms.defaults.CmsXmlNav</CLASS>
<TEMPLATE>/content/elements/navigation</TEMPLATE>
</ELEMENTDEF>
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
The file /content/elements/navigation looks like this:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
<?xml version="1.0"?>
<XMLTEMPLATE>
<navstart>
<![CDATA[
<script language="JavaScript1.2"
src="script/coolmenus3.js"></script>
<script language="JavaScript1.2"
src="script/menu_settings.js"></script>
<script language="JavaScript1.2">
<!--
]]>
</navstart>
<naventry>
<![CDATA[oCMenu.makeMenu(']]>
<method name="getPropertyCurrent">Title</method>
<![CDATA[',']]>
<method name="getPropertyParent">1,Title</method>
<![CDATA[',' ]]>
<process>navtext</process>
<![CDATA[',']]>
<process>navlink</process>
<![CDATA[','main',]]>
<method name="getPropertyCurrent">NavPos</method>
<![CDATA[)]]>
</naventry>
<navend>
<![CDATA[
//Leave these two lines! Making the styles and then
constructing the menu
oCMenu.makeStyle(); oCMenu.construct()
-->
</script>
]]>
</navend>
<TEMPLATE>
<method name="getNavTree"/>
</TEMPLATE>
</XMLTEMPLATE>
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Pecoma * ICT-professionals * http://www.pecoma.nl
Is deze e-mail niet voor u bedoeld? Laat het ons even weten. Bij voorbaat dank. Dit e-mailbericht is gecontroleerd op computervirussen met MIMEsweeper.
More information about the opencms-dev
mailing list