Update of /var/cvs/applications/searchrelate/META-INF/tags/mm/searchrelate
In directory james.mmbase.org:/tmp/cvs-serv21314
Modified Files:
relate.tagx relatednodes.tagx
Log Message:
'precreate' and 'alt' attributes
See also:
http://cvs.mmbase.org/viewcvs/applications/searchrelate/META-INF/tags/mm/searchrelate
Index: relate.tagx
===================================================================
RCS file:
/var/cvs/applications/searchrelate/META-INF/tags/mm/searchrelate/relate.tagx,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -b -r1.25 -r1.26
--- relate.tagx 4 Jun 2008 14:11:14 -0000 1.25
+++ relate.tagx 19 Jun 2008 12:23:51 -0000 1.26
@@ -6,7 +6,7 @@
>
<!--
@author Michiel Meeuwissen
- @version $Id: relate.tagx,v 1.25 2008/06/04 14:11:14 michiel Exp $
+ @version $Id: relate.tagx,v 1.26 2008/06/19 12:23:51 michiel Exp $
-->
<jsp:directive.tag
example="See /mmexamples/searchrelate"
@@ -29,7 +29,7 @@
description="Whether, or not, the tools should also
allow deletion of relations" />
<jsp:directive.attribute name="create" type="java.lang.Boolean"
- description="Whether, or not, the tools should also
allow creation of new nodes" />
+ description="Whether, or not, the tools should also
allow creation of new nodes. Defaults to 'false'." />
<jsp:directive.attribute name="transaction " type="java.lang.String"
description="The name of the mmbase transaction to
be used" />
Index: relatednodes.tagx
===================================================================
RCS file:
/var/cvs/applications/searchrelate/META-INF/tags/mm/searchrelate/relatednodes.tagx,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -b -r1.8 -r1.9
--- relatednodes.tagx 5 Jun 2008 13:34:24 -0000 1.8
+++ relatednodes.tagx 19 Jun 2008 12:23:51 -0000 1.9
@@ -6,7 +6,7 @@
>
<!--
@author Michiel Meeuwissen
- @version $Id: relatednodes.tagx,v 1.8 2008/06/05 13:34:24 michiel Exp $
+ @version $Id: relatednodes.tagx,v 1.9 2008/06/19 12:23:51 michiel Exp $
-->
<jsp:directive.tag
example="See /mmexamples/searchrelate"
@@ -32,6 +32,13 @@
<jsp:directive.attribute name="li" type="java.lang.String"
description="Jsp to use to present one li-item, can
be empty for a default presentation."
/>
+ <jsp:directive.attribute name="precreate" type="java.lang.String"
+ description="Jsp to call just before commit of the
create node."
+ />
+
+ <jsp:directive.attribute name="alt" type="java.lang.String"
+ description="Alt text for the create-button.
Defaults to '+'."
+ />
<mm:import id="r">${empty role ? 'posrel' : role}</mm:import>
<mm:import id="order">${empty orderby ? r : orderby}${empty orderby ? '.pos'
: ''}</mm:import>
@@ -69,9 +76,11 @@
<mm:import id="icons"><mm:url page="${empty icondir ?
'/mmbase/style/images' : icondir}" /></mm:import>
<mm:link page="/mmbase/searchrelate/list/create.jspx"
- referids="type,[EMAIL PROTECTED],[EMAIL
PROTECTED],default?,[EMAIL PROTECTED],icondir?,li?">
+ referids="type,[EMAIL PROTECTED],[EMAIL
PROTECTED],default?,[EMAIL PROTECTED],icondir?,li?,precreate?">
<a href="${_}" class="create">
- <img class="icon" alt="+" src="${icons}/create.png" />
+ <img class="icon"
+ alt="${empty alt ? '+' : alt}"
+ src="${icons}/create.png" />
</a>
</mm:link>
<span class="status">...</span>
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs