You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by mi...@apache.org on 2003/08/30 14:46:56 UTC
cvs commit: cocoon-lenya/src/webapp/lenya/pubs/blog/lenya/xslt/formeditor sidebar.xsl
michi 2003/08/30 05:46:56
Modified: src/webapp/lenya/pubs/blog sitemap.xmap
src/webapp/lenya/pubs/blog/config/menus feed.xsp
Added: src/webapp/lenya/pubs/blog/lenya/xslt/formeditor sidebar.xsl
Log:
Sidebar is editable
Revision Changes Path
1.25 +5 -1 cocoon-lenya/src/webapp/lenya/pubs/blog/sitemap.xmap
Index: sitemap.xmap
===================================================================
RCS file: /home/cvs/cocoon-lenya/src/webapp/lenya/pubs/blog/sitemap.xmap,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -r1.24 -r1.25
--- sitemap.xmap 29 Aug 2003 14:32:30 -0000 1.24
+++ sitemap.xmap 30 Aug 2003 12:46:56 -0000 1.25
@@ -33,6 +33,10 @@
<map:match pattern="*/index.html">
<map:redirect-to uri="feeds/all/index.html"/>
</map:match>
+ <!-- The HTML Form Editor does send a redirect -->
+ <map:match pattern="*/sidebar.html">
+ <map:redirect-to uri="feeds/all/index.html"/>
+ </map:match>
</map:pipeline>
<!-- WebDAV -->
1.4 +5 -0 cocoon-lenya/src/webapp/lenya/pubs/blog/config/menus/feed.xsp
Index: feed.xsp
===================================================================
RCS file: /home/cvs/cocoon-lenya/src/webapp/lenya/pubs/blog/config/menus/feed.xsp,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- feed.xsp 29 Aug 2003 07:48:20 -0000 1.3
+++ feed.xsp 30 Aug 2003 12:46:56 -0000 1.4
@@ -32,6 +32,11 @@
<block>
<item uc:usecase="create" uc:step="showscreen" href="?doctype=entry">Add new Entry</item>
</block>
+<!--
+ <block>
+ <item uc:usecase="edit" href="../../sidebar.html?lenya.step=open&doctype=sidebar">Edit Sidebar with Forms</item>
+ </block>
+-->
<block>
<item><xsp:attribute name="href">?lenya.usecase=logout</xsp:attribute>Logout</item>
</block>
1.1 cocoon-lenya/src/webapp/lenya/pubs/blog/lenya/xslt/formeditor/sidebar.xsl
Index: sidebar.xsl
===================================================================
<?xml version="1.0" encoding="iso-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>
<xsl:import href="../../../../../xslt/authoring/edit/form.xsl"/>
<xsl:template match="sidebar">
<xsl:apply-templates select="block"/>
</xsl:template>
<xsl:template match="block">
<tr>
<td><input type="image" src="/lenya/lenya/images/delete.gif" name="delete" value="element./sidebar/block[{@tagID}]"/></td><td colspan="2">Block</td>
</tr>
<tr>
<td> </td><td>Title</td><td><input type="text" name="element./sidebar/block/title[{title/@tagID}]" size="40"><xsl:attribute name="value"><xsl:value-of select="title" /></xsl:attribute></input></td>
</tr>
<tr>
<td> </td><td valign="top">Content</td><td><pre><xsl:copy-of select="content/@*|content/node()" /></pre></td>
<!--
<td> </td><td valign="top">Content</td><td><textarea name="element./sidebar/block/content[{content/@tagID}]" cols="40" rows="3"><xsl:copy-of select="content/@*|content/node()" /></textarea></td>
-->
</tr>
</xsl:template>
</xsl:stylesheet>
---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-cvs-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-cvs-help@cocoon.apache.org