Le vendredi 21 octobre 2005 à 12:07 +0200, Roger Stupf a écrit :
> Hi Olivier
> 
> thanks for the hint!
> 
> Do you know, if the list of this.filterdata (described in  http:// 
> wiki.apache.org/lenya/HowToEditFormsWithKupu ) can contain non-xhtml  
> tags, for example custom tags following a specific schema (in our  
> case e.g. "unizh:teaser") ?
> 
> Aloha from Zurich
> 
> Roger

Hi Roger, nice to read you here ;)

First : accept my apologies for my very bad english... okay, now i can
start :)

I don't know if you can add non-xhtml tags in this config file... i only
add iframe and forms elements. But kupu is xhtml only, i don't think
it's possible. Someone can confirm ?

However, i'm working on Kupu files to adapt some things for the UniGE
pubs. For example, if you want to keep an element <unige:toc/> when you
edit your content with kupu, you can add

   <xsl:template match="unige:toc">
     <div id="unige-body-toc">[UniGE Sommaire automatique]</div>
   </xsl:template>

to kupu/apache-lenya/lenya/content2edit.xsl

and

   <xsl:template match="xhtml:[EMAIL PROTECTED]'unige-body-toc']">
     <unige:toc/>
   </xsl:template>

to kupu/apache-lenya/lenya/kupusave.xsl

Don't forget to add xmlns:younamespace declaration in your xslt.

You can do the same thing for <lenya:asset> element :

content2edit.xsl :

   <xsl:template match="lenya:asset">
     <a href="[EMAIL PROTECTED]" title="[EMAIL PROTECTED]" class="asset">
       <xsl:value-of select="text()"/>
     </a>
   </xsl:template>

kupusave.xsl :

   <xsl:template match="xhtml:[EMAIL PROTECTED]'asset']">
     <lenya:asset src="[EMAIL PROTECTED]" size="[EMAIL PROTECTED]" type="">
       <xsl:value-of select="text()"/>
     </lenya:asset>
   </xsl:template>

It's only examples, but it works.


To continue in Kupu subject, we choose to use Kupu as first content
editor, because BXE doesn't match with our need. I start to work on Kupu
and want to add the possibility to add lenya asset with kupu drawers.
kupu/apache-lenya/lenya/drawers/linklibraries.xml.jx seems to have
reference to futur implementation.
I modify usecase-kupu.xmap and usecase-kupu.js and try to add a new
function other_link_library() for list assets, but this doesn't work at
the moment.

Maybe someone have already doing this ?

-- Olivier



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to