Jan,
See inline responses below. Let us know how you fare or get back to us
if you have further questions.
HTH,
Randy
Jan Kowalik wrote:
Hi Randy,
I use 2.1.3 version of JetSpeed.
Below is modified a bit foldet.metadata file I was talking about:
======================================
<folder
xmlns="http://portals.apache.org/jetspeed"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://portals.apache.org/jetspeed
http://portals.apache.org/jetspeed-2/2.1/schemas/folder-metadata.xsd">
<title>Start</title>
<defaults
layout-decorator="tigris"
portlet-decorator="tigris"
/>
<document-order>Jetspeed2.link</document-order>
<document-order>Jetspeed2Wiki.link</document-order>
<document-order>apache_portals.link</document-order>
<document-order>apache.link</document-order>
<menu name="myMenu">
<separator>
<text>Administartion</text>
</separator>
<options>/Administrative</options>
<separator>
<text>Portal Links</text>
</separator>
<options regexp="true">/*.link</options>
</menu>
The default layouts understand only the standard menu names. So,
"myMenu" will not be seen. If you wanted to override the existing menus,
you need to name this "navigations". If you named it "page-navigations",
(as it was originally), it would replace only a section of the original
standard menus since it is included in the default menu.
<!-- temporary menu definitions for jscookmenu layout decorator;
will be standard -->
<menu name="site-navigations" regexp="true" options="/*/,/*.psml" depth="-1"/>
<security-constraints>
<security-constraints-ref>public-view</security-constraints-ref>
</security-constraints>
</folder>
======================================
As I said before it doesn't work and does not display defined menu. It
displayed just menu "Additional links" with all links from directory
and menu "Folders" with "administrative" and "public" folders (when I
am logged as admin). I guess those are defined by that line
...
<!-- temporary menu definitions for jscookmenu layout decorator;
will be standard -->
<menu name="site-navigations" regexp="true" options="/*/,/*.psml" depth="-1"/>
...
No, I think what you see is largely the default menu. The
"site-navigations" menu is used only for jscookmenu layouts. If you
define your menu as "navigations" or "page-navigations", you should be
able to see it. Note that security might be getting in the way here, so
make sure you are logged in as admin when you are evaluating whether or
not it is working.
Is that line a definition of tabs on top of the page as well ?
Tabs on top of the page are defined by the "pages" menu. If you wanted
to define new tabs, you would override this menu by naming your menu
"pages".
What about default global menu declarations ? How to use them ? just
by setting menu name to one of them ?
pages
breadcrumbs
navigations
back
Yes, see above.
Thanks for any help
Regards
--
Jan
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscr...@portals.apache.org
For additional commands, e-mail: jetspeed-user-h...@portals.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscr...@portals.apache.org
For additional commands, e-mail: jetspeed-user-h...@portals.apache.org