Hello,

at first thanks for this lovely module. I am sure when packaged completely this will rock for quite some time. Anyhow I was wondering whether anybody has made experience with file sharing squeezed into spaces. I had a look at the docs module which looks quite interesting and was trying to squeeze that into a context space for an organic group. Did not work until the very end.

Anybody an idea?

Best of wishes

Sebastian

Comments

yhahn’s picture

Status: Active » Postponed

Hi Sebastian,

We haven't done any advanced directory/file setup with Spaces but if you come across a system that integrates against OG and Views you may be in luck. On our Drupal 6 projects we're currently finding that combining the upload module (regular Drupal attachments) with views 2 which has much better support and integration against Drupal's file tables makes for a good file searching/sharing experience in small teams.

schoeller’s picture

Version: 6.x-1.0-alpha2 » 6.x-1.0-alpha3
Component: Miscellaneous » Documentation
Category: feature » support
Status: Postponed » Postponed (maintainer needs more info)

hi,

I have followed your recommendation for using upload as file exchange base. I have carried out the following steps on Drupal 6.8 using spaces alpha3:

1. Enable upload module
2. Create file type with attachments named "file"
3. Allow for content type "file" to be posted in organic groups
4. Create view for file content type by cloning the "spaces_document" view as "spaces_file" and exchanging "document" entries for "file".
5. Activate spaces type in the specific group
6. Create new menu item (disabled) "Files" pointing to URL file
7. In context view change
Views -> "spaces_file"
Menus -> "Files"
Content Types -> "file"
Left block -> "spaces_file"

Everything works so far, meaning that files may be posted into space and are listed accordingly. The only thing is that they do not integrate with the blocks.

A question that remains for me is how to activate a menu entry for the new view under the block "Spaces: Navigation" or "Spaces: Contextual Tools" so that it integrates into spaces blocks?

Best wishes

Sebastian

yhahn’s picture

Assigned: Unassigned » yhahn

Sebastian -- you can add a link to the spaces menu in the context UI (make sure you are using ALPHA 3) under the "Spaces feature" section.

You will see text fields for the feature name, description, menu title and menu path. Also, make sure that you context definition uses the right namespace and attribute -- they should be spaces and feature. Your value can be whatever you like, probably files makes sense.

Hope that helps!

schoeller’s picture

Hahn,

thanks for the response. Copied the blog context ui definition to file and changes entries to:

$items[] = array (
'namespace' => 'spaces',
'attribute' => 'feature',
'value' => 'file',
'node' =>
array (
'file' => 'file',
),
'views' =>
array (
'spaces_file' => 'spaces_file',
),
'menu' => 'file',
'spaces' =>
array (
'label' => 'File',
'description' => 'A file board for team communications.',
'menu' =>
array (
0 =>
array (
'title' => 'Files',
'href' => 'file',
),
),
'types' =>
array (
'og' => 0,
),
),
'block' =>
array (
'views_spaces_file-block_1' =>
array (
'module' => 'views',
'delta' => 'spaces_file-block_1',
'region' => 'right',
'weight' => '11',
),
),
);

Works like a charm. Just need a delete button for uploaded files would be perfect *grin*. Are you going to port the calendar spaces module in the near future to D6?

Best wishes and thanks for the hints

Sebastian

yhahn’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

Closing -- initial issue resolved.