Discuss.FOLIO.org is no longer used. This is a static snapshot of the website as of February 14, 2023.

Seeking Ruby-on-Rails help to modify this Forum’s code

3 Oct '16

The discuss.folio.org website uses a piece of software called Discourse. One of the features of Discourse is to be able to embed comments on a topic in another web page. We’re using this on Discuss to provide a comment section for pages on Wiki.folio.org.

The default implementation of this copies the main body of the target web page as the first post on a topic. We need an option added to the JavaScript fragment that is a toggle for including the main body. By way of example, the configuration portion of the JavaScript for embedding Discourse would look like this:

DiscourseEmbed = { discourseUrl: 'http://discuss.folio.org/',
                     discourseEmbedUrl: 'http://wiki.folio.org/page/blah',
                     discourseEmbedBody: False };

Discourse is written as Ruby-on-Rails, and I think the code doing the embedding is located here:

Is there someone that knows Ruby-on-Rails that could modify Discourse (via plugin or contributing code to the mainstream project) that could address this?

3 Oct '16

(Posted to issues.folio.org as FOLIO-344.)