[daisy] Can this be done?
Steven Noels
stevenn at outerthought.org
Sun Nov 26 14:58:33 CST 2006
On 26 Nov 2006, at 21:48, Robert Cecil wrote:
> Hi,
>
> I'm new to Daisy and am trying to create a document type that
> represents a page composition common in the particular client I am
> working with. In this design, each page has an image themed for the
> page. Some pages reuse the same image from other pages, so i
> thought the particular way that the Daisy Wiki editor allows for
> different ways to include images (upload new, reference external,
> reference internal existing) would work great. I created a document
> type that has two Parts: SimpleDocumentContent, and ImageData, and
> one field. Unfortunately, the ImageData part doesn't behave as I
> expected - it forces the user to upload a new image each time an
> instance of this document type is created and saved.
>
> Is there a way to support the "image gallery" approach that the
> Wiki supports internally in daisy-html, but do it in a structured
> way (that is a document that must have a single image with a
> specific meaning and interpretation)?
This sounds like an ideal case to jump in and start using a custom
publisher request that pulls in an image (from a set of existing
image documents, which can be uploaded separately) linked to that
document using a link field, whose selection list is populated using
a query.
Have a look here: http://cocoondev.org/daisyscratchpad/g1/279.html
I'm using this in a setup for a private site I'm working on, much to
my own satisfaction. I can now use document specific styling for
correctly rendering those pulled in 'sidebar' items, which made my
general layout.xsl much more general and better structured.
Please report back if you plan to start using custom publisher
requests, as I feel it's one of those vastly underused (or
underexposed perhaps) features of Daisy.
</Steven>
--
Steven Noels http://outerthought.org/
Outerthought Open Source Java & XML
stevenn at outerthought.org stevenn at apache.org
More information about the daisy
mailing list