You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lenya.apache.org by Apache Wiki <wi...@apache.org> on 2005/07/19 06:07:16 UTC

[Lenya Wiki] Update of "HowToEditFormsWithKupu" by JonathanLinczak

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Lenya Wiki" for change notification.

The following page has been changed by JonathanLinczak:
http://wiki.apache.org/lenya/HowToEditFormsWithKupu

New page:
Have some HTML form elements on a page but still want users to edit the page for various reasons without ruining the HTML form?  Well, be default, Kupu in Lenya will remove most of the attributes to `input` tags, specifically the `name` and `type` attributes.

To fix this, edit the file `$LENYA_HOME/resources/kupu/apache-lenya/lenya/kupusave.xsl` with your favorite editor.  Look for some lines that look like this:

{{{
<xsl:template match="@shape"/>
<xsl:template match="@align"/>
<xsl:template match="@name"/>
<xsl:template match="@type"/>
}}}

Simply remove the last two lines above for `@name` and `@type` and save.  Now your input items should save without any problems.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org