[Zope] objectValues value for Zdiscussions
BZ
bz@bwanazulia.com
Thu, 10 Jan 2002 07:00:06 -0500
Here is the code I am using on AudiTT.org (http://www.AudiTT.org) for
the "new classifieds" on the left hand side nav (without all the HTML
table stuff).
<dtml-in "classifieds.searchResults(in_reply_to=[''])" size="5"
reverse sort=id start=query_start>
<dtml-if sequence-start>
<dtml-var bobobase_modification_time fmt="%d"> <dtml-var
bobobase_modification_time fmt="aMonth">
<a target="_top" href="<dtml-var absolute_url>/<dtml-var
id>"><dtml-var title size="16" missing="(no subject)"></a>
<dtml-if sequence-end>
</dtml-if>
</dtml-in>
Cheers,
BZ
At 4:11 PM -0500 1/8/02, T.J. Sullivan wrote:
>That was the first one I tried. I am very much a Newbie with zope, but here is
>the code I am using.
><ul>
><dtml-in expr="objectValues('ZDiscussionsTopic')">
> <li><a href="&dtml-absolute_url;"><dtml-var title_or_id></a></li><br>
></dtml-in>
></ul>
>
>I also tried filling in the space with a %20 to no avail. I am
>probably missing
>something very simple, but I am unable to see it.
>
>TJ
>
>Casey Duncan wrote:
>
>> On Tuesday 08 January 2002 03:40 pm, T.J. Sullivan allegedly wrote:
>> > Hello All,
>> > I am trying to generate a list of available forums located in a
>> > folder. The easiest was seams to be using <dtml-in
>> > expr="objectValues('ObjectTypeName')"> but I can not find the value to
>> > insert into the objectValues parameter for ZDiscussions Topic. Any
>> > thoughts? TIA
>> >
>> > TJ Sullivan
>>
>> If you look at any management screen for an object, you can see it's meta-
>> type in the top left corner, as in:
>>
>> "Some Metatype" a /Path/to/object
>>
>> Also the meta-types are listed in the drop-down list you use to
>>add an object
>> to a folder.
>>
>> hth,
>> /---------------------------------------------------\
>> Casey Duncan, Sr. Web Developer
>> National Legal Aid and Defender Association
>> c.duncan@nlada.org
>> \---------------------------------------------------/
>
>
>_______________________________________________
>Zope maillist - Zope@zope.org
>http://lists.zope.org/mailman/listinfo/zope
>** No cross posts or HTML encoding! **
>(Related lists -
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )