The Files tab in a group.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.tx
docs
gs
.hgignore
COPYRIGHT.txt
LICENSE.txt
MANIFEST.in
README.rst
setup.cfg
setup.py
version.py

README.rst

gs.group.messages.files

The list of recently posted files in a group

Author: Michael JasonSmith
Contact: Michael JasonSmith <mpj17@onlinegroups.net>
Date: 2016-02-02
Organization: GroupServer.org
Copyright: This document is licensed under a
Creative Commons Attribution-Share Alike 4.0 International License
by OnlineGroups.net.

Introduction

In some groups the files that are posted are very important. To support this, the Files list displays the files that have been posted recently on the Group page. It also supplies a link to the ATOM feed for the most-recent files.

List

The gs-group-messages-files-tab viewlet provides the space for a list of recently posted files, in the Secondary part of the Group page [1]. An AJAX call is made by the JavaScript resource for the list, which is loaded after the other resources in the browser-window.

Each list item shows

  • A square thumbnail, if the file is a photo,
  • The file-name, and
  • The topic name (linking to the topic).

Resource

The JavaScript resource gs-group-messages-files-js-20160201.js [2] loads the files from the page gs-group-messages-files-ajax.html in the Group context. It uses the GSSearch system to perform the search [3].

The resource is added to the Group page by the gs-group-messages-files-script viewlet.

Feed

A link to the ATOM of all files posted to the group is provided by this product. It has the name gs-group-messages-files-link and relies on the viewlet manager providing the gs.group.home.interfaces.IGroupHomepageMetadata interface.

Resources

[1]The files list uses the viewlet manager gs.group.home.interfaces.IGroupHomepageSecondary. See gs.group.home <https://github.com/groupserver/gs.group.home>
[2]The minified version gs-group-messages-files-js-min-20160201.js is normally used.