From portal-commits at lists.jboss.org Thu Apr 26 09:25:09 2007 Content-Type: multipart/mixed; boundary="===============7044453030836622564==" MIME-Version: 1.0 From: portal-commits at lists.jboss.org To: portal-commits at lists.jboss.org Subject: [portal-commits] JBoss Portal SVN: r7076 - trunk/core/src/resources/portal-core-war/WEB-INF/jsp/header. Date: Thu, 26 Apr 2007 09:25:08 -0400 Message-ID: --===============7044453030836622564== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: thomas.heute(a)jboss.com Date: 2007-04-26 09:25:08 -0400 (Thu, 26 Apr 2007) New Revision: 7076 Modified: trunk/core/src/resources/portal-core-war/WEB-INF/jsp/header/tabs.jsp Log: Show the top pages in the tabs. Modified: trunk/core/src/resources/portal-core-war/WEB-INF/jsp/header/tabs.= jsp =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/core/src/resources/portal-core-war/WEB-INF/jsp/header/tabs.jsp 20= 07-04-26 13:15:14 UTC (rev 7075) +++ trunk/core/src/resources/portal-core-war/WEB-INF/jsp/header/tabs.jsp 20= 07-04-26 13:25:08 UTC (rev 7076) @@ -6,6 +6,15 @@ = <% PortalNode root =3D (PortalNode)request.getAttribute("org.jboss.portal.= api.PORTAL_NODE"); + PortalNode portal =3D root; + PortalNode mainPage =3D portal; = + = + while (portal.getType() !=3D PortalNode.TYPE_PORTAL) + { + mainPage =3D portal; + portal =3D portal.getParent(); + } + = PortalRuntimeContext context =3D (PortalRuntimeContext)request.getAttri= bute("org.jboss.portal.api.PORTAL_RUNTIME_CONTEXT"); = // Get a locale @@ -19,23 +28,23 @@