taylor 2004/09/01 17:42:50
Modified: portal/src/webapp/WEB-INF/decorations/layout/html/jetspeed
decorator-top.vm
portal/src/webapp/WEB-INF/decorations/layout/html/jetspeed/css
styles.css
Added: portal/src/webapp/WEB-INF/decorations/layout/html/jetspeed/images
tabmiddle_low.gif tabmiddle.gif tableft.gif
tabright_low.gif tabright.gif tableft_low.gif
Removed: portal/src/webapp/WEB-INF/decorations/portlet/html/jetspeed/images
tabright.gif tabright_low.gif tabmiddle_low.gif
tabmiddle.gif tableft.gif tableft_low.gif
Log:
contribution from Randy Watler: Tabbed Menus on default jetspeed layouts
CVS: ----------------------------------------------------------------------
CVS: PR:
CVS: If this change addresses a PR in the problem report tracking
CVS: database, then enter the PR number(s) here.
CVS: Obtained from:
CVS: If this change has been taken from another system, such as NCSA,
CVS: then name the system in this line, otherwise delete it.
CVS: Submitted by:
CVS: If this code has been contributed to Apache by someone else; i.e.,
CVS: they sent us a patch or a new module, then include their name/email
CVS: address here. If this is your work then delete this line.
CVS: Reviewed by:
CVS: If we are doing pre-commit code reviews and someone else has
CVS: reviewed your changes, include their name(s) here.
CVS: If you have not had it reviewed then delete this line.
Revision Changes Path
1.11 +25 -1
jakarta-jetspeed-2/portal/src/webapp/WEB-INF/decorations/layout/html/jetspeed/decorator-top.vm
Index: decorator-top.vm
===================================================================
RCS file:
/home/cvs/jakarta-jetspeed-2/portal/src/webapp/WEB-INF/decorations/layout/html/jetspeed/decorator-top.vm,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- decorator-top.vm 24 Aug 2004 21:33:25 -0000 1.10
+++ decorator-top.vm 2 Sep 2004 00:42:49 -0000 1.11
@@ -34,9 +34,11 @@
</ol>
*#
+#set($myF = $jetspeed.currentFragment)
<!-- BEGIN: layout/html/jetspeed/decorator.vm -->
+<div id="layout-${myF.id}" class="layout-Jetspeed" >
<p>
<img src="content/images/jetspeed-logo.gif" alt="Jetspeed 2 Logo" border="0">
</p>
@@ -55,12 +57,34 @@
#foreach($childFolder in $folder.folders.iterator())
<a
href="${appRoot}/portal${childFolder.name}">$childFolder.metaData.getTitle($preferedLocal)</a>
#end
-
+
+ #*
#foreach($childPage in $folder.pages.iterator())
<a
href="${appRoot}/portal${childPage.id}">$childPage.getTitle($preferedLocal)</a>
#end
+ *#
+ <p>
+ <table border="0" cellpadding="0" cellspacing="0" width="100%">
+ <tr>
+ #foreach($childPage in $folder.pages.iterator())
+ #set($tabName = $childPage.getTitle($preferedLocal))
+ #if($jetspeed.page == $childPage)
+ <td class="LTabLeft" style="font-size:1pt;"
nowrap="true"> </td>
+ <td class="LTab" align="center" valign="middle"
nowrap="true">${tabName}</td>
+ <td class="LTabRight" style="font-size:1pt;"
nowrap="true"> </td>
+ #else
+ <td class="LTabLeftLow" style="font-size:1pt;"
nowrap="true"> </td>
+ <td class="LTabLow" align="center" valign="middle" nowrap="true"><a
href="${appRoot}/portal${childPage.id}">${tabName}</a></td>
+ <td class="LTabRightLow" style="font-size:1pt;"
nowrap="true"> </td>
+ #end
+ #end
+ </tr>
+ </table>
+ </p>
</p>
+</div>
+
## $jetspeed.include($jetspeed.currentFragment)
<!-- END: layout/html/jetspeed/decorator.vm -->
1.1
jakarta-jetspeed-2/portal/src/webapp/WEB-INF/decorations/layout/html/jetspeed/images/tabmiddle_low.gif
<<Binary file>>
1.1
jakarta-jetspeed-2/portal/src/webapp/WEB-INF/decorations/layout/html/jetspeed/images/tabmiddle.gif
<<Binary file>>
1.1
jakarta-jetspeed-2/portal/src/webapp/WEB-INF/decorations/layout/html/jetspeed/images/tableft.gif
<<Binary file>>
1.1
jakarta-jetspeed-2/portal/src/webapp/WEB-INF/decorations/layout/html/jetspeed/images/tabright_low.gif
<<Binary file>>
1.1
jakarta-jetspeed-2/portal/src/webapp/WEB-INF/decorations/layout/html/jetspeed/images/tabright.gif
<<Binary file>>
1.1
jakarta-jetspeed-2/portal/src/webapp/WEB-INF/decorations/layout/html/jetspeed/images/tableft_low.gif
<<Binary file>>
1.10 +46 -0
jakarta-jetspeed-2/portal/src/webapp/WEB-INF/decorations/layout/html/jetspeed/css/styles.css
Index: styles.css
===================================================================
RCS file:
/home/cvs/jakarta-jetspeed-2/portal/src/webapp/WEB-INF/decorations/layout/html/jetspeed/css/styles.css,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- styles.css 20 Jul 2004 21:36:31 -0000 1.9
+++ styles.css 2 Sep 2004 00:42:50 -0000 1.10
@@ -18,3 +18,49 @@
BODY.layout-Jetspeed {
}
+
+.layout-Jetspeed .LTabLeftLow
+{
+ /**
+ Needs to specify the width of image used
+ otherwise it won't show !
+ **/
+ width:10px;
+
+ /** Always use relative path ! **/
+ background:url(content/jetspeed/images/tableft_low.gif);
+}
+
+.layout-Jetspeed .LTabLow
+{
+ /**
+ Specify the height of the image used
+ else it will use the text height
+ **/
+ height:25px;
+ background:url(content/jetspeed/images/tabmiddle_low.gif);
+}
+
+.layout-Jetspeed .LTabRightLow
+{
+ width:10px;
+ background:url(content/jetspeed/images/tabright_low.gif);
+}
+
+.layout-Jetspeed .LTabLeft
+{
+ width:10px;
+ background:url(content/jetspeed/images/tableft.gif);
+}
+
+.layout-Jetspeed .LTab
+{
+ height:25px;
+ background:url(content/jetspeed/images/tabmiddle.gif);
+}
+
+.layout-Jetspeed .LTabRight
+{
+ width:10px;
+ background:url(content/jetspeed/images/tabright.gif);
+}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]