You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by Elif Guner <el...@gmail.com> on 2006/09/15 21:32:44 UTC
How to get the absolute path?
Hi,
I wrote a simple portlet and am trying to read the folder menu within
a portlet. I can read the relative url's but how can I get the
absolute URL? And also where is $jetspeed defined? If I set $jetspeed
then I guess doing <td>${linkUrl} will work.
This is my .vm file:
#set($navigationsStandardMenu = $site.getMenu("page-navigations"))
#if(!$navigationsStandardMenu.empty)
<table cellpadding="0" cellspacing="4" border="0" width="100%">
#foreach($element in $navigationsStandardMenu.elements.iterator())
<tr>
#set($linkUrl = $jetspeed.getAbsoluteUrl($element.url))
<td>$element.url</td>
</tr>
#end
</table>
#end
Thanks....
Elif
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org