[Zope-CMF] List subjects for Document Type only
Andrew Sawyers
andrew@digicool.com
Mon, 25 Jun 2001 10:26:24 -0400
Norman,
Look at the CMFCalendar event product; I do what you are looking for on the
event edit form.
Andrew
> -----Original Message-----
> From: zope-cmf-admin@zope.org [mailto:zope-cmf-admin@zope.org]On Behalf
> Of Norman Khine
> Sent: Friday, June 22, 2001 9:08 AM
> To: Zope-Cmf
> Subject: [Zope-CMF] List subjects for Document Type only
>
>
> Hello,
> I would like to be able to list the vocabulary list only for the Document
> Type and not any others. How do I do that.
>
> I have something like, which I copied straight from the
> simple_metadata dtml
> method. But this gives me a list of all the types.?!
>
> <table cellpadding="0" cellspacing="0" width="100%" align="center"
> border="0">
>
> <td>
> <tr valign="top">
> <td>
> <dtml-let contentSubject=Subject
>
> allowedSubjects="portal_metadata.listAllowedSubjects( this() )"
> >
>
> <dtml-in Subject
> ><dtml-let item=sequence-item
> ><dtml-unless expr="item in allowedSubjects"
> ><dtml-var sequence-item>
> </dtml-unless></dtml-let></dtml-in></textarea>
> <dtml-comment>
> Comment out / delete this to ignore controlled vocabulary
> for Subject.
> </dtml-comment>
> <br>
> <select name="subject:list" multiple>
> <dtml-in allowedSubjects>
> <dtml-let item=sequence-item
> sel="item in contentSubject and 'selected' or ''"
> >
> <option value="&dtml-sequence-item;"
> &dtml-sel;> &dtml-sequence-item; </option>
> </dtml-let>
> </dtml-in>
> </select>
> </dtml-let>
> </td>
> </td>
>
> </table>
>
> Many thanks
>
> Norman
>
>
>
>
> _______________________________________________
> Zope-CMF maillist - Zope-CMF@zope.org
> http://lists.zope.org/mailman/listinfo/zope-cmf
>
> See http://www.zope.org/Products/PTK/Tracker for bug reports and
> feature requests
>