[daisy] Adding fields to an attachment type document.

Paul Focke paul at outerthought.org
Fri Sep 29 10:46:29 CDT 2006


Chris wrote:
> First, thanks for all the answers!
>
> I found that my 'tagging' fields work great
> in queries.
>
> I created two new doc types BasicDocument and BasicAttachment.
> I added my fields to these because Daisy suggestes not to modify
> the built in ones such as SimpleDocument and Attachment.
>
> I found that the document-to-html.xsl in the default skin has a special
> way to handle/display Attachment type it gives you two links, on to doc
> info and one to AttachmentData.  I just modified this xsl in my skin to
> look for my new BasicAttachment.
>
> I also found another special place for Attachment type, in the doc editor
> you can link to an Attachment and Create/Upload it at the same time, but this makes
> a Attachement type not my new one, I guess I can find a place to change this.
>
> But the real question is, Is there any other place that does special handling
> of Attachment type that will make me regret using my own doc type with
> my new field types?
>   
Nope I don't think there are any other places.  If you would be putting 
multimedia content into those documents you might also want to have a 
look at the MultiMediaObject document type.  The xsl is found in 
<wiki.home>/webapp/daisy/resources/skins/default/document-styling/html/MultiMediaObject.xsl.  
If you don't know about document specific styling you might want to have 
a look in the documentation : 
http://cocoondev.org/daisydocs-1_5/daisywiki/general/g1/26.html

Paul
> -thanks,
>
> -Chris
>
> _______________________________________________
> daisy community mailing list
> Professional Daisy support: http://outerthought.org/site/services/daisy/daisysupport.html
> mail to: daisy at lists.cocoondev.org
> list information: http://lists.cocoondev.org/mailman/listinfo/daisy
>   



More information about the daisy mailing list