[Zope-CMF] CMF Browser

Ausum Studio ausum_studio@hotmail.com
Tue, 3 Dec 2002 15:43:42 -0500


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


----- Original Message -----
From: "Andrew M. Yochum" <andrew@digitalpulp.com>
To: <zope-cmf@zope.org>
Cc: "Ausum Studio" <ausum_studio@hotmail.com>
Sent: Tuesday, December 03, 2002 12:17 PM
Subject: Re: [Zope-CMF] CMF Browser


> Sorry, I wasn't too explicit about what I was looking for.
>
> What I'd like is to:
>
> 1. Provide a button next to a text field that when pressed will...
>
> 2. Pop up a small window with a listing of CMF documents (in the current
folder or
>    a path passed to the popup)
>
> 3. Allow the user to navigate to the folder containing the desired
document
>
> 4. Provide a "Use this document" or similar link that when pressed
will....
>
> 5. Populate the field in the original window with the path to the chosen
document
>    (using javascript most likely)
>
> This would give business users an non-technical method to enter a link to
> another document by avoiding having to remember the path to a document, or
from
> copying and pasting the right portion of the url to be linked to.
>
> Andrew
>
>
> On Mon, 2 Dec 2002, Ausum Studio wrote:
>
> > I've tried but I couldn't understand your post. Could you explain
yourself?
> >
> >
> > Ausum
> >
> >
> > ----- Original Message -----
> > From: "Andrew M. Yochum" <andrew@digitalpulp.com>
> > To: <zope-cmf@zope.org>
> > Sent: Monday, December 02, 2002 1:15 PM
> > Subject: [Zope-CMF] CMF Browser
> >
> >
> > > Hello,
> > >
> > > I am looking for a product that would allow one to browse the
structure of
> > a
> > > CMF site in order to choose a CMF Document that would populate a field
in
> > the
> > > Edit screen of another Document with the path to the chosen Document.
> > This
> > > could be used choose a target Document to reference while creating a
new
> > > Favorite Document, or an image to be displayed, for instance.
> > >
> > > I'd rather not re-invent the wheel. :-) Does such a tool exist
already?
> > >
> > > Regards,
> > > Andrew
> > >