[EMAIL PROTECTED] wrote:
> On 8/13/06, Jörn Nettingsmeier <[EMAIL PROTECTED]> wrote:
>> i "solved" it, but i'd love to hear comments about my solution. there
>> must be a better way...
>>
>> i'm doing this:
>>
>> tinymce.jx usecase handler:
>>
>> [a header that loads the javascript for the editor]
>>    <cinclude:includexml>
>>      <cinclude:src>cocoon://modules/tinymce/content</cinclude:src>
>>    </cinclude:includexml>
>>
>> my tinymce module sitemap:
>>
>>    <!-- this pattern is called by usecases/tinymce.jx -->
>>    <map:match pattern="content">
>>      <map:generate
>> src="cocoon:/__content/authoring{page-envelope:document-url}"/>
>>      <map:serialize type="xml"/>
>>    </map:match>
>>
>>    <map:match pattern="__content/**">
>>     <map:mount
>>       src="{fallback:{page-envelope:publication-id}:sitemap.xmap}"
>>       uri-prefix="__content"/>
>>    </map:match>
> 
> [sharing joy without the slightest bit of condescension]  Cool!  I'm
> impressed.  Cocoon is very powerful; sometimes you just need an extra
> pipeline to make it work. 

is that irony? ;)

> map:mount often requires one because the
> url must be changed for the uri-prefix.  And the lightning strike will
> go through me first; 1.3's Modules use that algorithm everywhere.

i'd love to hear more about that - can you post sitemap snippets?
i'm not sure about my solution - it does look ugly syntactically. but
it's nice from a conceptual pov, and i'd like to know whether it would
be worth it to document such "design patterns" for lenya sitemaps in
order to make them more generic, more orthogonal and easier to grasp in
the future.

currently, the default publication sitemap is still irritating, since it
must know about bxe and lucene, as well as svg. not nice, but hard to
fix without changes to those modules and also to the global sitemaps.

> Wait until you see how I am using Kupu to edit any one field without
> saving the current state of the document to disk.  I have the module:
> protocol replacing fallback, and virtual documents to make it
> "easier", but this is not how grandpa uses Cocoon.

no worries about grandpa.
grandpa has been catatonic ever since he's read module-resources.xmap by
accident.

:-D


-- 
"I don't need backups. I need restore!" - Trad.

--
Jörn Nettingsmeier, EDV-Administrator
Institut für Politikwissenschaft
Universität Duisburg-Essen, Standort Duisburg
Mail: [EMAIL PROTECTED], Telefon: 0203/379-2736


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

Reply via email to