[opencms-dev] Is this a bug or not?

Bas van der Meijden b.vandermeijden at pecoma.nl
Fri Jan 10 15:28:16 CET 2003


Isn't anybody interested in this? Or hasn't anybody else encountered this
problem?

It seems nobody wants to answer this question.

Kind regards 
Bas van der Meijden



-----Oorspronkelijk bericht-----
Van: mfoley5 at csc.com.au [mailto:mfoley5 at csc.com.au]
Verzonden: vrijdag 13 december 2002 0:27
Aan: opencms-dev at www.opencms.org
Onderwerp: Re: [opencms-dev] Is this a bug or not?


Ha!

We are trying to use this too -- I found somebody reported this in August
to the opencms-dev mailing list, but so far no response.  I have been
digging through the sourcecode since Wednesday  to see if this can be
fixed, but so far no luck.

If this can't be fixed, we are faced with the prospect of having to write
our own navigation class to get over the limitation...

Should I raise this in Bugzilla?

Regards,
Mark

Mark Foley
__________________________________________________
CSC
212 Northbourne Ave, Braddon, ACT 2612
Ph: +61-2-62468487    Email: mfoley5 at csc.com.au
----------------------------------------------------------------------------
------------

This email, including any attachments, is intended only for use by the
addressee(s) and may contain confidential and/or personal information and
may also be the subject of legal privilege. Any personal information
contained in this email is not to be used or disclosed for any purpose
other than the purpose for which you have received it. If you are not the
intended recipient, you must not disclose or use the information contained
in it. In this case, please let me know by return email, delete the message
permanently from your system and destroy any copies.
----------------------------------------------------------------------------
------------


 

                      Bas van der Meijden

                      <b.vandermeijden at pecom        To:
"'opencms-dev at opencms.org'" <opencms-dev at opencms.org>

                      a.nl>                         cc:

                      Sent by:                      Subject:  [opencms-dev]
Is this a bug or not?                                           
                      owner-opencms-dev at www.

                      opencms.org

 

 

                      12/12/2002 09:06 PM

                      Please respond to

                      opencms-dev

 

 





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.




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