Update of /var/cvs/contributions/didactor2/src/core/metainf/tags/di/core
In directory james.mmbase.org:/tmp/cvs-serv26974
Modified Files:
kupulink.tagx
Log Message:
See also:
http://cvs.mmbase.org/viewcvs/contributions/didactor2/src/core/metainf/tags/di/core
Index: kupulink.tagx
===================================================================
RCS file:
/var/cvs/contributions/didactor2/src/core/metainf/tags/di/core/kupulink.tagx,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- kupulink.tagx 29 Aug 2008 13:35:53 -0000 1.1
+++ kupulink.tagx 3 Sep 2008 11:09:39 -0000 1.2
@@ -16,13 +16,40 @@
wizard="${wizard}"
node="${node}"
referrer="${referrer}">
- <mm:write referid="_">
<mm:param name="style"><mm:treefile page="/kupu" absolute="context"
objectlist="$includePath" /></mm:param>
<mm:param name="templates">/editwizards/data</mm:param>
<mm:param name="link_nodetypes">${di:setting('richtext',
'link_nodetypes')}</mm:param>
+
+ <c:choose>
+ <c:when test="${node eq 'new'}">
+ <!-- determin the type it is going to have
+ we need to know that to know whether background image links must
be produced.
+ -->
+ <mm:import
id="wizardxml">${mm:directory(referrer)}/${wizard}.xml</mm:import>
+
+
+ <mm:haspage page="$wizardxml" inverse="true">
+ <mm:import id="wizardxml"
reset="true">${templates}/${wizard}.xml</mm:import>
+ </mm:haspage>
+ <mm:haspage page="$wizardxml">
+ <mm:formatter id="sourcemanager" write="false">
+ <mm:include cite="true" page="${wizardxml}"/>
+ <mm:xslt>
+ <xsl:template xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
match="/">
+ <xsl:value-of select="/wizard-schema/[EMAIL
PROTECTED]'create']/object/@type"/>
+ </xsl:template>
+ </mm:xslt>
+ </mm:formatter>
+ </mm:haspage>
+ </c:when>
+ <c:otherwise>
+ <mm:node id="sourcemanager" referid="node" />
+ </c:otherwise>
+ </c:choose>
+
<!-- support for backgraound -->
- <mm:hasrelationmanager sourcemanager="$_node" destinationmanager="images"
+ <mm:hasrelationmanager sourcemanager="$sourcemanager"
destinationmanager="images"
role="background">
<mm:relatednodescontainer id="current" type="images" role="background">
<mm:maxnumber value="1" />
@@ -34,7 +61,7 @@
<mm:param name="currentTitle"><di:translate key="rich.backgroundimage"
/></mm:param>
<mm:param name="tools">searchrelate</mm:param>
</mm:hasrelationmanager>
-
+ <mm:write value="${pageScope['org.mmbase.richtext.kupulink']}"
escape="none">
<jsp:doBody />
</mm:write>
</mm-r:kupulink>
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs