Share files among teachers at Tzu Chi Chinese Academy Schools
Project number: | 1964 |
Opened by: | jsheu |
Opened on: | Sunday, August 14, 2011 - 10:29pm |
Last modified: | Monday, April 9, 2012 - 10:43pm |
Operations: | add Case | view all project cases |
Change the project title to "Share files among teachers at Tzu Chi Chinese Academy Schools" as this project will support Tzu Chi Academy Schools in both Cupertino and San Jose.
Project members,
- Cupertino: Sister Leslie
- San Jose: Sister Karen, Sister Connie, Brother Elton
Sister Leslie has requested to have a simple site so that teachers can share files. The initial specifications are
- The folder is at "Gallery" -> "chinese school" -> "Cupertino Chinese School".
- Anyone can upload files/photos: teachers might not bother to create user id in order to upload/download files. This might create a security hole that malicious users can upload offending files/photos. << This function will be disabled >>
- Only admin users can delete files: Sister Leslie has the full admin power to delete items in the the folder.
- One Gallery2 theme "File" has been created by modifying the existing theme "Matrix". The theme "File" will only do plain display of file names ("Title" field) and there is no thumbnail to be displayed. This would make the listing of files and directories be more concise.
This working template can be applied to the project "Share documents/files in Finance Group".
The several components have been created as the building blocks of the site.
庫菩提諾慈濟人文學校
-
A custom menu "庫菩提諾慈濟人文學校" has been created.
- Rather than letting Gallery2 manage the menu hierarchy, it makes more sense to create a custom menu so that the menu items can be sorted with custom order (default Gallery2 sort order is alphabetic).
- The custom menu needs to be expanded initially so that the sorting order can be reinforced.
-
The menu is placed in the "sidebar first" region with the special php control so that the menu only shows up in the Tzu Chi Academy, Cupertino pages.
<?php
global $user;$match = FALSE;
$path = drupal_get_path_alias($_GET['q']);
if (preg_match('@.*tzu-chi-academy.*@', $path) ||
preg_match('@^gallery/119/13859/13864$@', $path) ||
preg_match('@^gallery/119/13859/13864/.+$@', $path) ||
0) {
$match = TRUE;
}if (in_array('anonymous user',$user->roles)) {
$match = FALSE;
}return $match;
?>
-
A custom block "庫菩提諾慈濟人文學校 portal 2" is created.
- This custom block is designed to provide a "home" buttom for 庫菩提諾慈濟人文學校.
- This block is placed in the "preface first" region.
- The visibility of this block is controlled to be shown up with "tzu chi academy cupertino user" roles.
-
A role of "tzu chi academy cupertino user" is created.
- This role is used to identify users of 庫菩提諾慈濟人文學校.
- Currently, there are only two users in this role.
- This role is controlling the appearance of the custom block "庫菩提諾慈濟人文學校 portal 2".
聖荷西慈濟人文學校