[opencms-dev] disappearing navigation (get)

Simon Knightley simon_knightley at yahoo.co.uk
Wed Feb 27 10:48:32 CET 2002


Manfred,

Your template looks fine, but you don't say what
parameters you pass to the getNavTree.  Make sure that
your content is hierarchical, so that all content for
category A is under a folder for this category and not
at the same level as the index page.

Simon

 --- Manfred Pruntsch <manfred.pruntsch at ifcos.com>
wrote: > Hi all,
> 
> I play with a testsite on opencms 4.5.35. This
> testsite is represented
> in the explorer view (vfs) by three folders and one
> html file under the
> root.
> The structure looks like this:
> root             --> indexH.html
>   + content
>   + categoryA    --> indexA.html
>   + categoryB    --> indexB.html
>   + categoryC    --> indexC.html
>   a.s.o
> 
> The mastertemplate (one for all pages) contains a
> page dividing table and
> three navigation
> elements:
> 
> <ELEMENTDEF name="nav">
>   <CLASS>com.opencms.defaults.CmsXmlNav</CLASS>
>   <TEMPLATE>/content/internal/navigation</TEMPLATE>
> </ELEMENTDEF>
> <ELEMENTDEF name="navfoot">
>   <CLASS>com.opencms.defaults.CmsXmlNav</CLASS>
>  
>
<TEMPLATE>/content/internal/navigationfoot</TEMPLATE>
> </ELEMENTDEF>
> <ELEMENTDEF name="navstatus">
>   <CLASS>com.opencms.defaults.CmsXmlNav</CLASS>
>   <TEMPLATE>/content/internal/navstatus</TEMPLATE>
> </ELEMENTDEF>
> 
> The navigation files in /content/internal/ were
> created according the
> dev-documentation (chapter 1.3.2 The default
> navigation class...;
> getNavCurrent) except the last
> 'navstatus' element definition. This definition
> builds a user status info
> (here am I) over
> the 'getNavTree' method.
> 
> On the start-page (indexH) all navigation work very
> fine.
> But on the pages in the subfolders (categoryA for
> example, indexA) the
> navigation 'nav' and 'navfoot' are disappearing.
> But surprisingly the 'navstatus' navigation work
> further fine.
> My questions are:
> Do I need a relative url to my navigation file like
> this: '../content/internal/navstatus' or will the
> absolute
> url work in every case independent from the
> invocation place?
> What else can happens? Whats going wrong in my
> files?
> 
> Another problem I have is the disappearing of an
> image.
> It is the same thing like above I guess. On the page
> indexH (direct under
> the root)
> I can see the image. But on the pages in the
> subfolders the image disappear.
> The image tag looks so: <img
> src="pics/images/Computerchips.jpg">.
> If I try <img src="/pics/images/Computerchips.jpg">
> the image will be never
> shown.
> Any ideas?
> 
> with kindly regards
> Manfred
> 
> ----------------------------------------------
> IFCOS Institut für Zell- und Organsimulation GmbH
> Friedrich-Barnewitz-Strasse 3
> email: manfred.pruntsch at ifcos.com
> 
> 
> here is the content of the 'navstatus' file:
> <?xml version="1.0"?>
> <XMLTEMPLATE>
> <naventry>
>   <![CDATA[
>   <td> <a
> href="]]><process>navlink</process><![CDATA[">
>        
>
]]><process>navtext</process><![CDATA[</a> </td>]]>
> </naventry>
> <navcurrent>
>   <![CDATA[
>   <td> 
>      
> ]]><process>navtext</process><![CDATA[ </td>]]>
> </navcurrent>
> <TEMPLATE>
>   <![CDATA[
>   <TABLE><tr>
>       <td><font face=arial size=2 color=#8B0000
> weight=bold>Here am
> I:</font></td>]]><method
> name="getNavTree"/><![CDATA[</tr>
>   </TABLE>]]>
> </TEMPLATE>
> </XMLTEMPLATE>
> 
> 
> 
> here is the content of the 'navigation' file:
> <?xml version="1.0"?>
> <XMLTEMPLATE>
> <naventry>
>   <![CDATA[
>   <tr>
>     <td><a
> href="]]><process>navlink</process><![CDATA[">
>        
> ]]><process>navtext</process><![CDATA[</a></td>
>   </tr>]]>
> </naventry>
> <navcurrent>
>   <![CDATA[
>   <tr>
>     <td>
>       ]]><process>navtext</process><![CDATA[</td>
>     </tr>]]>
> </navcurrent>
> <TEMPLATE>
>   <![CDATA[
>   <TABLE width="100%" bgcolor=#DEB887>
>     ]]><method name="getNavCurrent"/><![CDATA[
>   </TABLE>
>   ]]>
> </TEMPLATE>
> </XMLTEMPLATE>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>  

__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com



More information about the opencms-dev mailing list