Category: Uncategorized

  • Email notifications

    For the site to process notifications of updates the email queue needs to be emptied out. This is usually done by setting up cron jobs. An alternative to cron jobs is poormanscron, a module that emulates cron using a Java script.

    Additionally, make sure to tick the box: "notofy poster of own posts' and disabel debugging in the notofications settings: 

     

    (1) Install module Poormanscron

    (2) Go to /admin/messaging/notifications

    • Tick 'Notify user of won postings' i
    • Untick 'Enable debugging'
    • Set everything to 'immediately'
    • (optional) 'Logging' set to 16 weeks
  • Hiding posts on the WordPress blog

    Recently it was pointed out that the blog displayed old vacancies under the catgeory tab jobs: http://icardablog.wordpress.com/category/jobs/

    WordPress does not offer a feature to simply 'unpublish' posts, however there are many plugins that can achieve that effect.We don't want to simplky delete old posts, but need to archivew them.

    The simple and dirty solution is to set posts to 'private', this can even be done via the quick edit menu. This means they will reamin visible to administrators only, but will be hidden from view for most other users.

  • From development to production environement

    A typical website desing process happens on several machines in parallel, particularly when multiple developers are involved. We are not yet following best practices in all these areas and should improve the overall workflow. Particularly drupal featurees module would make versioning and reusing of the code much less time consuming.

    1. Developing environment: every developer has a version of the website installed locally on their machine.
    2. Staging environment: This is online and serves as the 'stage' where the client can test the site
    3. Production environment: This is the actual web site, not the place to test out new things.

    Best practices include using a VNS (Version Control System) to be able to roll back the code and using the Drush module: makes updaing drupal simpler via the command line.

    Here are some good reads:

    https://community.openatrium.com/documentation-en/node/1943

    http://groups.drupal.org/node/24196

    http://badcamp.net/session/dev-test-stage-production-case-study-twomiles-international-multi-developer-deployment-proce

  • Filedepot: adding a document repository feature to Open Atrium

    There are several features available for browsing files. The most interesting one seems to be Filedepot.

    Steps to enable the feature:

    1. Install modules

    Download and unzip feature: filedepot_feature
    Add it to atrium_features

    Download and unzip modules: filedopt, filefield

    Enable modules and feature: /admin/build/modules

    2. Fix .CSS files

    In the filedepot feature: edit the filedepot_feature.css file and remove these 2 CSS declarations from the top of the page (cut, don't delete so you can keep the two lines of code in the clipboard).

    #content { width:99% !important; }
    #right { display:none; }
     
    In filedepot module: add them to

    In filedepot module: edite the fildepot.css in the CSS folder and add the 2 CSS to the top of the page.

    These are needed for the Open Atrium implementation – but you can see the effect on filedepot without them. Adding these two declarations to the filedepot.css file in the module will sort this out and does not appear to effect filedepot layout in a non-openatrium (garland) site, so I will move them into the main module.

    If the changes are not visible right away, runnung updata.php might help.

     

    3. Enable feature

    Check that feature is installed and enabled
    /admin/build/features

    Go to group, click on customize features
    Enable filedepo_feature
    Click'Save for (group)

    Add some dummy content
    Go to /group/fieldepot to check it is really there

    4. Fix menu (if icon still does not show):
    http://drupal.org/node/921014#comment-form

    /admin/build/menu
    create a new menu item under the "Features" menu called "Documents"

    with a path of "filedepot"

    5. Fix uploader

    The flash upload interface trigeers a login request from the server (ISA). Ahamd succesfully got around it by logging in, cancelling the upload and then tryin again. The files then show for the admin in a 'to be approved' queue within filedepot.

    Also, there seems to be a problem with the flash plugin for Firefox. It crashed during upoading.

    6. Permissions

    Make sure all roles can add folders to fildepot (the button on the far left next to 'upload' button, did not show when logged in as manager)

    7. Files are visbile for all groups that have the feature enabled

    Permissioning nicely explained in this tutorial:

    http://www.youtube.com/watch?v=3cgiHYV6Za4&feature=related

    Files visible in all groups: Need to change the permissions so files are only visible for the groups where they were uploadedThis problem was mentioned by someone already in one of the discussion threads below. Not sure if it was fixed, though

    http://drupal.org/node/921014I too though this did not work, but after a bit of systematic testing found that the permission structure does work, just probably not as expected.

     

    Things to note:

    • You must manually create a folder for each group that you wish to have a folder.
    • You must manually set the permission on each folder so there is access for that group, and remove access via roles.
    • If user A is a member of Group 1 and Group 2 then they can see the Group 1 and 2 folders from within Group 1 and from within Group 2.

    I think this mode of opperation is counter intuitive and should be changed so that:

    • When the file deopt feature is enabled for a group then a folder is created for that group (with the name of the group)
    • When the group is renamed, so is the folder (This will require a mapping between filedepot CID to organic group GID mapping to be maintained – maybe in a drupal variable??)
    • When the group is deleted, so is the group folder
    • The folder which is created should automatically have the permissions for the group applied to it as per the defaults (an admin interface would need to be added so that defaults could be set).
    • Each groups folder should only be visible from within the group.

    8. Direct download link for files

    http://www.screencast.com/users/Nextide/folders/Jing/media/4498fe0a-45cd-4ce5-b370-ba64245f700c

    9. Filedepot upload button gone in IE (did this happen to anyone else?)

    Possible cause for problem is write perissions of appache: https://community.openatrium.com/issues/node/2629

    "I have a weird situation on my OA installation: suddenly, the "Choose File" button on any edit/create form for the content types that have attachments enabled has disappeared. The section "Attach files to this " is there, the text about allowed file extensions is there also, but the button is gone. I have not changed anything on "Upload" module, the permissions are fine, and I can't correlate this to anything that I have done, so I am perplexed. Does anyone have any experience like this? Any help will be highly appreciated"

     

     

    Related discussions here:
    http://drupal.org/node/770756
    http://drupal.org/node/770756#comment-3079722
    http://drupal.org/node/921014#comment-form

    Screenshots
    http://content.screencast.com/users/Nextide/folders/Jing/media/38bc6b5a-927e-49fe-9aa9-2beef29505fb/00000002.png

    http://www.screencast.com/users/Nextide/folders/Jing/media/34b020b7-e85f-4ac5-bd7b-42248ef7ca09