Skip to content

groupserver/gs.group.messages.topic.start

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gs.group.messages.topic.start

The Start a Topic page for GroupServer

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.

Introduction

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.

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.

JSON

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.

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.

Resources

[1]See the base Topic product: <https://github.com/groupserver/gs.group.messages.topic.base>

About

The Start a Topic page for a group.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published