https://github.com/p2pu/discourse-gallery
Embed a gallery of discourse posts on your website.
https://github.com/p2pu/discourse-gallery
Last synced: 10 months ago
JSON representation
Embed a gallery of discourse posts on your website.
- Host: GitHub
- URL: https://github.com/p2pu/discourse-gallery
- Owner: p2pu
- Created: 2015-02-04T14:45:56.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-02-04T14:48:24.000Z (over 11 years ago)
- Last Synced: 2025-05-21T15:18:07.139Z (about 1 year ago)
- Language: JavaScript
- Size: 117 KB
- Stars: 1
- Watchers: 6
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.markdown
Awesome Lists containing this project
README
Embed posts from a discourse forum in a web page.
# Usage
## Configuring discourse for CORS
Add the following to you app.yml
```
DISCOURSE_ENABLE_CORS: true
DISCOURSE_CORS_ORIGIN: '*'
```
Then run ./launcher rebuild app.yml
## Add template to your page:
```
```
## Include JavaScript
```
discourseGallery.loadCategoryGallery({
containerId: 'gallery',
forumUrl: 'forum.example.net',
category: 'category-slug'
});
```