Logo
Explore Help
Sign In
IntenseWebs/discourse
3
0
Fork 0
You've already forked discourse
mirror of https://github.com/discourse/discourse.git synced 2025-02-25 18:55:32 -06:00
Code Issues Packages Projects Releases Wiki Activity
Files
e866e3d609c1ac8b9c2aa251d728d6073affcd60
discourse/app/serializers/published_page_serializer.rb

10 lines
158 B
Ruby
Raw Normal View History

FEATURE: Support for publishing topics as pages (#9364) If the feature is enabled, staff members can construct a URL and publish a topic for others to browse without the regular Discourse chrome. This is useful if you want to use Discourse like a CMS and publish topics as articles, which can then be embedded into other systems.
2020-04-08 12:52:36 -04:00
# frozen_string_literal: true
class PublishedPageSerializer < ApplicationSerializer
FEATURE: allows published pages to be public (#10053)
2020-06-17 12:42:20 +02:00
attributes :id, :slug, :public
FEATURE: Support for publishing topics as pages (#9364) If the feature is enabled, staff members can construct a URL and publish a topic for others to browse without the regular Discourse chrome. This is useful if you want to use Discourse like a CMS and publish topics as articles, which can then be embedded into other systems.
2020-04-08 12:52:36 -04:00
def id
object.topic_id
end
end
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 79ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API