Author: | Michael JasonSmith |
---|---|
Contact: | Michael JasonSmith <mpj17@onlinegroups.net> |
Date: | 2015-02-24 |
Organization: | GroupServer.org |
Copyright: | This document is licensed under a `Creative Commons Attribution-Share Alike 4.0 International License`_ by OnlineGroups.net. |
This product supplies the New Topic page for GroupServer, as well as the JSON list of topics that is used to provide the autocomplete JavaScript for the page.
The New Topic page is closely modelled on the Add a reply
form on the Topic page [1]. Its primary difference is the
Topic
field, which allows the participant to set the subject
line. To encourage participants to add to topics, rather than
start new ones, the Typeahead plugin to suggest existing
topic-titles, rather than new ones. The autocomplete code is
supplied with data by the JSON page, also provided by this
product.
The page topics.json
supplies the list of 255 most recent
topics ordered by the date of the most recent post, in JSON
format. This is used to provide the data for the Typeahead
JavaScript.
The resource /++resource++gs-group-messages-startopic-20130308.js
provides the JavaScript for the page. It creates a Bootstrap
Typeahead widget after the page loads. It then request
topics.json
using AJAX once the user starts typing in the
Topic
field.
- Code repository: https://github.com/groupserver/gs.group.messages.topic.start
- Translation: https://www.transifex.com/projects/p/gs-group-messages-topic-start/
- Questions and comments to http://groupserver.org/groups/development
- Report bugs at https://redmine.iopen.net/projects/groupserver
[1] | See the base Topic product: <https://github.com/groupserver/gs.group.messages.topic.base> |