Or, how can I send the user to a specific directory from a link? Basically, I have groups setup as project and on the site there will be many projects associated with groups and they will each have their own folders within webfm that are automatically creating. I would like to show the files for that group in a nice fashion. I would like to let everyone view the files, but only let Project Managers, Admins, and Contributors be able to add files and everyone else can just view them.

The main question is, however, how do I put the webfm ui into a panel node? Can I do this using views? Can I do this using a block? Is this already provided? I can't see any blocks or views anywhere and it would be very nice if I could just drop the page like (/webfm) into a panel or something. Or at least be able to link the user to /webfm and have the group's folder already open so they don't have to go searching for it.

Comments

janj’s picture

couldnt this be done by creating a Iframe with "source" named the link to that specific folder, in a common drupalpage?

sinmanteca’s picture

I'm trying to achieve similar functionality by providing separate file repositories for each user group. Ideally, it would be great if WebFM could provide a page tab for groups much the same way that the OG Forums module generates a "Forums" tab; although, panels access would be more versatile. I was also thinking of using an iframe but I don't know how to call up the WebFM UI.

In the meantime, I'm probably going to create an empty page (using OG Panels) and simply redirect the page to the /webfm URL. Not ideal because it takes the user outside of their group.

design.er’s picture

I'm looking for a similar solution. I need to embed the /webfm page into QuickTabs. I tried to do this via iframe. The problem is that the whole page (with navigation footer etc) is going to be loaded into the iframe. I only need the content area.
Is there a way (theme function etc) to achieve this?

nhck’s picture

Maybe check with the functions that webfm_popup provides?

bnubbz’s picture

Yes, webfm_popup should do the trick. You can include this in the browser url like this: yousite.com/webfm_popup ... so you can just create a link to /webfm_popup instead of /webfm.

This will get rid of any themed header and footer garbage as well.

My main problem is that I only want to show folders that are associated with the group that the user is currently within, not ALL of the folders for all groups and anything else I use WebFM for. Any suggestions on this one?

ñull’s picture

Subscribing

cgmonroe’s picture

You should look at this patch:

http://drupal.org/node/736548

It adds a webfm_custom_layout function that can do what you want. In fact, one reason I did this was to better support OG group files.

It's been tagged to be added in the future, but IMHO (and on my sites) the patch is production ready.... but I might be biased ;)

nhck’s picture

Status: Active » Closed (fixed)