[daisy] [JIRA] Commented: (DSY-455) allow to define 'available document-types' in the siteconf

Bruno Dumon (JIRA) issues at cocoondev.org
Mon Jun 11 03:40:46 CDT 2007


    [ http://issues.cocoondev.org//browse/DSY-455?page=comments#action_13214 ] 

Bruno Dumon commented on DSY-455:
---------------------------------

For the wildcard-matching you could reuse Cocoon's wildcardmatcher.

For the include/exclude logic I'd follow the way Ant works, which means that the document type list consist of document types that match at least one of the include patterns and none of the exclude patterns.

A first idea for the config syntax:

<documentTypeFilter>
  <include name="foo*"/>
  <include name="foo2*"/>
  <exclude name="bar*"/>
</documentTypeFilter>

> allow to define 'available document-types' in the siteconf
> ----------------------------------------------------------
>
>          Key: DSY-455
>          URL: http://issues.cocoondev.org//browse/DSY-455
>      Project: Daisy
>         Type: New Feature
>     Reporter: Marc Portier
>     Priority: Minor
>      Fix For: 2.1

>
> Currently the siteconf.xml [1] allows to specify the default document-type:
>     <defaultDocumentType>SimpleDocument</defaultDocumentType>
> this puts the most-likely to be created document for that site on top of the list.
> In more general terms however the repository might contain a whole lot of document-types that really should be totally hidden from the list of available document-types within the context of a certain site.
> For this filtering to occur, I would suggest to define the complete list of available document-types in the siteconf.xml file.
> Something like
>   <availableDocumentTypes>
>     <documentType>OneType</documentType>
>     <documentType>AnotherType</documentType>
>     <documentType>AFinalType</documentType>
>   </availableDocumentTypes>
> This should define the ordered list as is, to be presented when users take the menu option 'new document'
> [1] http://cocoondev.org/daisydocs-2_0/374-cd/23-cd.html

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.cocoondev.org//secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira



More information about the daisy mailing list