Hi,

I have a simple velocity portlet which reads in the page-navigations
and makes a list of links that i use as a left menu. When I use the
same portlet in other pages that belong to another folders I have no
problem. When I use it within the folder it's supposed to be in, I get
a null menu. I can't figure out why. Can anyone help me find out what
the reason might be?

Here's my portlet's view.vm:

#set($site = 
$request.getAttribute("org.apache.jetspeed.portalsite.PortalSiteRequestContext"))
#set($navigationsStandardMenu = $site.getMenu("page-navigations"))
#set($preferedLocale = "en")
#if(!$navigationsStandardMenu.empty)
   <div id="leftmenu" >
   <ul>
   #foreach($element in $navigationsStandardMenu.elements.iterator())
       #set($linkUrl = $site.getAbsoluteUrl($element.url))

       #set ($linkUrl2 =
"${request.scheme}://${request.serverName}:${request.serverPort}/jetspeed/portal$element.url")
       #set($linkTitle = $element.Title)
       <li><a href="$linkUrl2" class="Link" title="$!linkTitle">$linkTitle</a>
   #end
   </ul>
   </div>
#end
#if($navigationsStandardMenu.empty)
  <div id="leftmenunull">
  MENU IS NULL!
  </div>
#end


And here's my folder.metadata:

<?xml version="1.0" encoding="UTF-8"?>

<folder>

 <title>Oil & Gas Network</title>



 <document-order>home.psml</document-order>
 <default-page>home.psml</default-page>
 <!-- temporary menu definitions for jscookmenu layout decorator;
will be standard-->



 <menu name="page-navigations" regexp="true"
options="/oilgas/home.psml,/oilgas/subscribers.psml,/oilgas/advertisers.psml,

       
/oilgas/events.psml,/oilgas/featurearticle.psml,/oilgas/mediakit.psml,/oilgas/supplement.psml,/oilgas/about.psml,

       /oilgas/contact.psml"/>

 <security-constraints>

   <security-constraints-ref>public-view</security-constraints-ref>

 </security-constraints>

</folder>


Thanks very much...
Elif

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to