[Zope] Accessing properties

Loren Stafford lstaffor@dynalogic.com
Wed, 16 Feb 2000 20:59:21 -0800


Here's how I do it. It seems to work regardless of whether "noindex" is
defined.

-- Loren

<!-- 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 -->

> I'd like to store a property in any of my folders that specifies them as
> hidden. Then I need to be able to access that property from any other page
> to check if it's there and is true, if it is then I don't display it in
> the generated menu. If it's not there or if it's false then it can be
> displayed in the menu.
>
> Help? I think the important bit is that folders may not contain the
> property (so I don't have to add it to every new folder!).
>
>  -- Roddy
>