paulsp 01/12/28 20:09:25
Modified: xdocs changes.xml portlet_config_RSS.xml
docs/site changes.html portlet_config_RSS.html
webapp/WEB-INF/xsl rss.xsl
Log:
o Add "openinpopup" parameter to NewRSSPortlet. This will allow a link
to be opened in a new browser window. (A long standing request)
Revision Changes Path
1.6 +7 -2 jakarta-jetspeed/xdocs/changes.xml
Index: changes.xml
===================================================================
RCS file: /home/cvs/jakarta-jetspeed/xdocs/changes.xml,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- changes.xml 29 Dec 2001 00:43:16 -0000 1.5
+++ changes.xml 29 Dec 2001 04:09:24 -0000 1.6
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!--
-$Id: changes.xml,v 1.5 2001/12/29 00:43:16 paulsp Exp $
+$Id: changes.xml,v 1.6 2001/12/29 04:09:24 paulsp Exp $
-->
<document>
<properties>
@@ -34,8 +34,13 @@
</li>
<li>
Add - Add "_showtitlebar" parameter to control display of Title bar. This can be
- used by all portlets types. (PS) Thanks to Andy Grundman
+ used by all portlet types. (PS) Thanks to Andy Grundman
</li>
+<li>
+ Add - Add "openinpopup" parameter to the NewRSSPortlet to enable opening links
+ in a new bowser window.(PS)
+</li>
+
</ul>
</section>
</body>
1.4 +14 -0 jakarta-jetspeed/xdocs/portlet_config_RSS.xml
Index: portlet_config_RSS.xml
===================================================================
RCS file: /home/cvs/jakarta-jetspeed/xdocs/portlet_config_RSS.xml,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- portlet_config_RSS.xml 28 Aug 2001 03:31:20 -0000 1.3
+++ portlet_config_RSS.xml 29 Dec 2001 04:09:24 -0000 1.4
@@ -100,6 +100,20 @@
</tr>
<tr>
+ <td>openinpopup</td>
+ <td>
+ Shoule links will be opened in a new browser window.
+ <br/>
+ If not present, Default: false
+ <table>
+ <tr><th>Value</th><th>Description</th></tr>
+ <tr><td>true</td><td>Links will be opened in a new browser
window</td></tr>
+ <tr><td>false</td><td>Links will be opened in the current browser
window</td></tr>
+ </table>
+ </td>
+ </tr>
+
+ <tr>
<td>showdescription</td>
<td>
Should the portlet show the item descriptions and icons.
1.5 +6 -1 jakarta-jetspeed/docs/site/changes.html
Index: changes.html
===================================================================
RCS file: /home/cvs/jakarta-jetspeed/docs/site/changes.html,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- changes.html 29 Dec 2001 00:43:16 -0000 1.4
+++ changes.html 29 Dec 2001 04:09:24 -0000 1.5
@@ -136,8 +136,13 @@
</li>
<li>
Add - Add "_showtitlebar" parameter to control display of Title bar. This can be
- used by all portlets types. (PS) Thanks to Andy Grundman
+ used by all portlet types. (PS) Thanks to Andy Grundman
</li>
+<li>
+ Add - Add "openinpopup" parameter to the NewRSSPortlet to enable opening links
+ in a new bowser window.(PS)
+</li>
+
</ul>
</blockquote>
</p>
1.6 +21 -0 jakarta-jetspeed/docs/site/portlet_config_RSS.html
Index: portlet_config_RSS.html
===================================================================
RCS file: /home/cvs/jakarta-jetspeed/docs/site/portlet_config_RSS.html,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- portlet_config_RSS.html 28 Dec 2001 15:42:57 -0000 1.5
+++ portlet_config_RSS.html 29 Dec 2001 04:09:24 -0000 1.6
@@ -257,6 +257,27 @@
<tr>
<td bgcolor="#a0ddf0" colspan="" rowspan="" valign="top"
align="left">
<font color="#000000" size="-1" face="arial,helvetica,sanserif">
+ openinpopup
+ </font>
+</td>
+ <td bgcolor="#a0ddf0" colspan="" rowspan=""
valign="top" align="left">
+ <font color="#000000" size="-1" face="arial,helvetica,sanserif">
+
+ Shoule links will be opened in a new browser window.
+ <br />
+ If not present, Default: false
+ <table>
+ <tr><th>Value</th><th>Description</th></tr>
+ <tr><td>true</td><td>Links will be opened in a new browser
window</td></tr>
+ <tr><td>false</td><td>Links will be opened in the current browser
window</td></tr>
+ </table>
+
+ </font>
+</td>
+ </tr>
+ <tr>
+ <td bgcolor="#a0ddf0" colspan="" rowspan="" valign="top"
align="left">
+ <font color="#000000" size="-1" face="arial,helvetica,sanserif">
showdescription
</font>
</td>
1.5 +33 -7 jakarta-jetspeed/webapp/WEB-INF/xsl/rss.xsl
Index: rss.xsl
===================================================================
RCS file: /home/cvs/jakarta-jetspeed/webapp/WEB-INF/xsl/rss.xsl,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- rss.xsl 29 Jul 2001 16:20:25 -0000 1.4
+++ rss.xsl 29 Dec 2001 04:09:24 -0000 1.5
@@ -5,7 +5,7 @@
Author: Santiago Gala ([EMAIL PROTECTED])
Author: Rapha묠Luta ([EMAIL PROTECTED])
Author: Paul Spencer ([EMAIL PROTECTED])
-$Id: rss.xsl,v 1.4 2001/07/29 16:20:25 taylor Exp $
+$Id: rss.xsl,v 1.5 2001/12/29 04:09:24 paulsp Exp $
-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
@@ -19,6 +19,7 @@
omit-xml-declaration="yes"/>
<xsl:param name="itemdisplayed" select="number(15)"/>
+ <xsl:param name="openinpopup" select="'false'"/>
<xsl:param name="showdescription" select="'true'"/>
<xsl:param name="showtitle" select="'true'"/>
<xsl:param name="showtextinput" select="'true'"/>
@@ -61,8 +62,13 @@
<xsl:value-of select="$description"/>
</xsl:when>
<xsl:otherwise>
- <a href="{downlevel:link}">
- <xsl:value-of select="$description"/></a>
+ <a>
+ <xsl:attribute name="href"><xsl:value-of
select="downlevel:link"/></xsl:attribute>
+ <xsl:if test="$openinpopup = 'true'">
+ <xsl:attribute name="target">_blank</xsl:attribute>
+ </xsl:if>
+ <xsl:value-of select="$description"/>
+ </a>
</xsl:otherwise>
</xsl:choose>
</p>
@@ -78,7 +84,13 @@
<xsl:template match="item">
<xsl:variable name="description" select="description"/>
<li>
- <a href="{link}"><xsl:value-of select="title"/></a>
+ <a>
+ <xsl:attribute name="href"><xsl:value-of select="link"/></xsl:attribute>
+ <xsl:if test="$openinpopup = 'true'">
+ <xsl:attribute name="target">_blank</xsl:attribute>
+ </xsl:if>
+ <xsl:value-of select="title"/>
+ </a>
<xsl:if test="$showdescription = 'true' and $description">
<br/><xsl:value-of select="$description"/>
</xsl:if>
@@ -88,7 +100,13 @@
<xsl:template match="downlevel:item">
<xsl:variable name="description" select="downlevel:description"/>
<li>
- <a href="{downlevel:link}"><xsl:value-of select="downlevel:title"/></a>
+ <a>
+ <xsl:attribute name="href"><xsl:value-of
select="downlevel:link"/></xsl:attribute>
+ <xsl:if test="$openinpopup = 'true'">
+ <xsl:attribute name="target">_blank</xsl:attribute>
+ </xsl:if>
+ <xsl:value-of select="downlevel:title"/>
+ </a>
<xsl:if test="$showdescription = 'true' and $description">
<br/><xsl:value-of select="$description"/>
</xsl:if>
@@ -112,7 +130,11 @@
</xsl:template>
<xsl:template match="image" mode="channel">
- <a href="{link}">
+ <a>
+ <xsl:attribute name="href"><xsl:value-of select="link"/></xsl:attribute>
+ <xsl:if test="$openinpopup = 'true'">
+ <xsl:attribute name="target">_blank</xsl:attribute>
+ </xsl:if>
<xsl:element name="img">
<xsl:attribute name="align">right</xsl:attribute>
<xsl:attribute name="border">0</xsl:attribute>
@@ -141,7 +163,11 @@
</xsl:template>
<xsl:template match="downlevel:image" mode="channel">
- <a href="{downlevel:link}">
+ <a>
+ <xsl:attribute name="href"><xsl:value-of
select="downlevel:link"/></xsl:attribute>
+ <xsl:if test="$openinpopup = 'true'">
+ <xsl:attribute name="target">_blank</xsl:attribute>
+ </xsl:if>
<xsl:element name="img">
<xsl:attribute name="align">right</xsl:attribute>
<xsl:attribute name="border">0</xsl:attribute>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>