[Zope] Re:

Loren Stafford lstaffor@dynalogic.com
Wed, 16 Feb 2000 23:25:03 -0800


1. If you want to hide a folder, I would think that you would want to hide
any folder under it. But then I surely don't understand your application.

2. Try this (from the ZQR)

    hasProperty(self, id)
                Return a true value if a property exists with the given id.

-- Loren

----- Original Message -----
From: Roddy <rvagg@grug.une.edu.au>
To: <zope@zope.org>
Cc: <lstaffor@dynalogic.com>
Sent: February 16, 2000 09:56 PM


>
> => <!-- Begin Title List -->
> => <ul>
> => <!--#in "PARENTS[0].objectValues(['Folder'])" sort=title
> => skip_unauthorized-->
> => <!--#unless noindex-->
> => <li><A HREF="<!--#var absolute_url-->"><!--#var title_or_id--></A></li>
> => <!--#/unless-->
> => <!--#/in-->
> => </ul>
> => <!-- End Title List -->
>
> Thanks Loren, works fine, except for silly acquisition. If you are viewing
> a page that has the property set to true acquisition says that the
> property is in the namespace. I don't want to have to set it to false on
> every other folder, just true on those not to display in the index.
> What happens is if you view a folder that has the property set then
> nothing at all is displayed because it's not set to false anywhere else
> and it's in the namespace stack as true!
> Other ideas?
>  -- Roddy
>
>
> ---
> Roddy Vagg
> Programmer, Web Developer
> Cooperative Research Centre for Cattle and Beef Quality
> (and) Total Genetic Resource Management (TGRM)
> Ph: (+61)267733978
> ---
>
>