[Zope-CMF] CMF Browser

Ausum Studio ausum_studio@hotmail.com
Wed, 4 Dec 2002 10:41:51 -0500


You can accomplish what you need just using skins, applying 'folder_browser'
as an invisible action, either to each object type(via portal_types) or as a
global action according to members permissions (via portal_membership). It
depends on where you are going to use the form you mentioned.

For the javascript part, take a look at these code examples:
http://www.caoxuan.com/cxk/webart/goodies/IndexWindows.html



Ausum




----- Original Message -----
From: "Andrew M. Yochum" <andrew@digitalpulp.com>
To: <zope-cmf@zope.org>
Sent: Tuesday, December 03, 2002 4:43 PM
Subject: Re: [Zope-CMF] CMF Browser


> Thank you.  The folder_contents.dmtl/pt looks like the best place to start
> given I'm looking for only CMF docs.
>
> Any thoughts on how this should be implemented?
>
> Here's how I was going to approach it:
>
> Create a class that subclasses the PortalFolder which adds an Action for
this
> modified folder_contents (maybe called folder_browser). Then, I'd swap the
> Folder portal_type for this new type.
>
> I believe I'd then also have to make my own version of the SkinnedFolder
so
> that my SkinnedFolder portal_types behave the same way.
>
> Any other suggestions?
>
> Andrew
>
>
> On Tue, 3 Dec 2002, Ausum Studio wrote:
>
> > The answer to your question is no, as far as I know there isn't a
product
> > for that, maybe because it's more a Javascript issue than a Zope's one.
> >
> > For the Zope part you'd need to know how to browse the whole permitted
> > content inside a window. Take 'main.dtml' (inside
> > ZOPEROOT/lib/python/OFS/dtml) as a startpoint, and downsize it to your
> > convenience. Within the CMF you can can also pick the 'folder_contents'
skin
> > for that same purpose. Once you have the navigateable pop-up window, to
pass
> > the paths to the field is a matter of javascript.
> >
> > To get the folder object use (inside a PythonScript):
> >
> > FolderObjectbyPath = context.restrictedTraverse(path_to_folder)
> >
> >
> > Ausum
> >
> >
> >

(trimmed)