페이지 게시

:bookmark: 이 가이드는 Discourse에서 페이지 게시(Page Publishing) 기능을 사용하는 방법에 대해 다룹니다. 이 기능을 사용하면 스태프(Staff) 사용자는 토ピック을 사용자 정의 스타일링이 적용된 독립형 정적 페이지로 변환할 수 있습니다. 예를 들어 서비스 약관 및 개인정보 처리방침 페이지 등이 있습니다.

:person_raising_hand: 필요한 사용자 권한: 스태프(Staff)

Discourse에서 정적 페이지 게시하기

페이지 게시(Page Publishing) 기능은 스태프(Staff) 사용자가 토ピック에서 독립형 정적 페이지를 생성할 수 있도록 합니다. 이는 서비스 약관이나 개인정보 처리방침 페이지를 생성하는 과정과 유사합니다.

요약

이 문서에서는 다음 내용을 다룹니다:

  • 페이지 게시 활성화
  • 토ピック을 페이지로 게시하기
  • 토ピック 게시 해제
  • 일반적인 문제 및 해결 방법
  • 자주 묻는 질문(FAQ)
  • 추가 자료

페이지 게시 활성화

  1. Admin > Settings로 이동합니다.
  2. enable page publishing 설정을 활성화합니다.
    Enable Page Publishing

로그인 필요 시 페이지 게시 활성화

사용자가 로그인하지 않은 상태에서도 게시된 페이지가 표시되도록 하려면:

  1. Admin > Settings에서 show_published_pages_login_required 설정을 활성화합니다.
    Show Published Pages

토ピック 게시하기

  1. 공개 토ピック의 첫 번째 게시물로 이동하여 말줄임표 아이콘(...)을 선택합니다.
    Ellipsis Menu

  2. 렌치 아이콘을 선택합니다.
    Wrench Icon

  3. “Page Publishing” 옵션을 선택합니다.

  4. 슬러그를 확인(게시물 제목에서 미리 입력될 수 있음)하고 게시된 페이지의 URL을 미리 볼 수 있는 모달 대화상자가 표시됩니다.

:warning: 페이지 게시를 허용하려면 secure upload 사이트 설정을 비활성화해야 합니다.

:information_source: 호스팅 사이트의 경우 secure uploads는 Enterprise 플랜에서만 사용할 수 있습니다.

게시된 토ピック

게시된 페이지

토ピック 게시 해제

  1. 알림 아래에서 Publishing Settings를 선택합니다.

  2. Unpublish를 클릭합니다.

  3. 페이지가 게시 해제됩니다.

일반적인 문제 및 해결 방법

로그아웃 상태에서는 게시된 페이지가 표시되지 않음

Admin > Settings에서 show_published_pages_login_required 설정이 활성화되어 있는지 확인하십시오.

게시된 페이지에 Discourse 헤더 추가

현재 정적 페이지는 최소한의 구성을 유지하도록 설계되어 있으며, 일반적인 Discourse 헤더와 푸터가 포함되지 않습니다.

자주 묻는 질문(FAQ)

FAQ 또는 소개 페이지를 공개할 수 있나요?

원하는 내용으로 새 토ピック을 생성하고 이를 페이지로 게시할 수 있습니다. 사이트 설정의 링크를 이 새 페이지를 가리키도록 변경하십시오.

게시된 페이지의 모양을 사용자 정의하는 방법은 무엇인가요?

Admin > Customize > Themes > CSS에서 HTML 문서의 구조와 해당하는 CSS 선택자를 사용하여 사용자 정의 스타일을 적용하십시오.

추가 자료

119개의 좋아요
Best landing page solution
ProCourse Static Pages
How to add a new page into the community? (Login isolated page)
Blog Post Styling
Is anyone here using their Discourse instance as their entire website?
Integrating webpage to current forum
Open (anon) interaction with a forum
Is there an upper limit to how many pages can be published?
Shared Drafts: Allow staff to collaborate on posts before publishing
Discourse + CMS, which one?
How do I redirect urls or create new ones?
Host HTML page on Discourse install
Is there any way to listen User login event using Theme component
How to share only few posts to public as links?
Open (anon) interaction with a forum
Create a "Docs" page like discource meta's
Invite people to reply to a topic without them needing to create an account
Allow anonymous users to view a topic?
What's the usage of "show published pages login required" setting?
How to add contact us page?
Embed my Discourse Forum as IFrame
Is there any way to restrict posting in a topic to members of a group, but allow all users to read the topic?
Order posts by Title
Edit Code
Published page not visible?
Inline Tooltips
Making the About and FAQ visible to anon
Allow published pages to be visible to anon
Customize login page
7 myths why a blog isn't needed in the discourse core
Filter view for muted categories
Landing Page
Customizing FAQs and Guidelines
ProCourse Static Pages
Can I use secure media and page publishing simultaneously in Discourse?
Publishing - how deep/good is fine-grained permisson control?
Publish Direct Messages
500 character ‘Reject Reason’ is too small a limit
How do I create a blank page within Discourse
How-to use Discourse for managing a collaborative newsletter?
Customize Login pop-up box?
Building a custom html page in discourse
Page for not-logged in users with a single topic displayed
Duplicate Terms of Service/Privacy Policy
Paid Groups
Help custom page?
Public Static pages and Private Forums - possible?
Should Discourse make an effort to become the next best "CMS"
Is It Possible to Create Custom Pages in Discourse?
How to Enable Terms of Service and Privacy Policy Pages in Discourse?
Is It Possible to Create Custom Pages in Discourse?
Blank Pages Related Help
How do root level links work?
How can I make a static page?
Creating custom pages like "About" and "FAQ"
Static pages for things like guidelines?
Multi-factor authentication enforcement lock in without help
Can you create a custom landing page?
Category Previews
Using Discourse as a News Blog and Forum - Any Known Good Examples?
Discourse for Teams is here!
How to make a website with Discourse
Generate static file in discourse
[Urgent] privacy policy page
Adding a static web page
DiscoTOC - automatic table of contents
Create a custom page with theme cli?
Change topic visibility in an admin category to public
Category Previews
Create a new text page option?
How to hide a single topic from showing up in "latest"?
ProCourse Static Pages
Control the visibility of /faq and /about
[Question/Request] Featured image url for post
Custom Homepage for Groups
Embedding private discussions on a wordpress site
Table of Contents not working on Published Pages

I still need to try this out first hand so the following may not be grounded in reality, but:

It strikes me that this permission model sets up a scenario where you always see two copies of the pages’ content – one in the relevant Discourse category, and one in the published pages themselves. This of course seems duplicative if you’re wanting to publish pages for the general population that is similar to, or identical to, your Discourse user base.

OTOH, if pages had the “world readable” flag available, you could then restrict who can see/edit them to a small group, and the only place the content would be available to other Discourse users would be in the published links themselves.

(I’m thinking of a use case of a “documentation site” here.)

Otherwise, I’m pretty excited to test things out!

8개의 좋아요

Awesome stuff, and thanks again for listening to your users. I love the ‘lets make this better for us all’ vibe that Discourse has! We’ll make heavy use of this.

When discussing one use (patching up an install that went a bit awry), another user pointed out a remaining bit of icing that could do with going on the cake:

Hey, is there any way to include the ability to make /faq and /about public as well, as they are currently hidden in Login Required sites. We can of course use the existing functionality that you’ve just released for /faq by making our own, changing the link in settings, and explicitly linking to it. However, this is not pretty and the existing navigation to it remains hidden. We can’t do that at all for /about of course.

9개의 좋아요

Something that would go nice with this feature is to make publications onebox-compatible such that people could easily share the content.

15개의 좋아요

Please excuse my ignorance, as I am very much a beginner in the HTML/CSS space.. however, how would we go about applying our theme colour choices to published pages. At its simplest, I’d like to use the dark background/white text to give the published pages the same darkmode experience as accessing our forums.

Is this already in the product, or do I need to play with HTML/CSS? If the latter, could anyone give me some pointers in the right direction? Thanks!

4개의 좋아요

Can you make this a separate feature request please? This is not related to page publishing, as in I wouldn’t have to change anything related to page publishing to make it possible. I do agree it would be better if all these “static” pages could have more or less the same behaviour, but there are multiple solutions here (do nothing? add site settings? migrate these to page publishing?), so we might want to have a dedicated topic for this.

8개의 좋아요

GTM not loaded on published pages? Would be nice.

2개의 좋아요

Hmm that is a really good point.

Just trying to think of a solution here… would it work if type="text/javascript" and type="text/discourse-plugin" were treated differently? The API needs the latter, right?

5개의 좋아요

Yes I think we already support having a text/javascript in the theme fields, so there are certainly solutions in this area.

7개의 좋아요

That would be great.

1개의 좋아요

So it’s currently impossible to have responsive published pages, and this site particularly wants

  1. images made available when sharing to public media, and
  2. responsive/resizing images displayed, especially on mobile–oh, mobile could just resize the image with CSS–that should work, right?
6개의 좋아요

+1 for having the Discourse header in published pages. I’m missing my website logo, custom header links and beloved hamburger menu :slight_smile:

Another oddity: in posts, my lightboxed images open in a nice popup, whereas in published pages, they open in a new tab…

7개의 좋아요

I think what’s needed is a set of theme components that add such. The last client I had to use this wanted the topic creator removed. I think it’s hard to guess what will meet people’s needs for this!

6개의 좋아요

Are there currently any ongoing efforts for adding “simple” (non-API) Javascript support to published pages? Or should we forget about this near- to mid-term ?

9개의 좋아요

Can i display external non-Discourse JSON on this page? Because we can’t use php code here and discourse strip most of html so i do not know how to do it..

2개의 좋아요

I have a problem with a published page - the button to copy the content of the code block is not visible on a published page. Screenshot: Screenshot by Lightshot. I move the mouse over the block, but the button doesn’t appear. When logged in - everything works as usual - ok.

Can anybody repeat the problem? Any solution?

2개의 좋아요

Thank you @riking !

It indeed seems that “regular” text/javascript is executing on published pages when it’s in the header or footer of a theme component.

8개의 좋아요

Ha! So it seems that there’s a hacky way to make some theme components work with page publishing.

I’m looking into adding some header/footer to the published pages, and theme components seem to be the way to go. But it seems bad to go on and implement something that would potentially break in the near future.

@riking, it looks like the text/javacript type in header or footer working on published pages was unintented. Is it going to be fixed or used to extend published pages?

@syl, author of DiscPage, mentioned the possibility to re-implement the DiscPage plugin using Page Publishing functionality. Do you still have this in mind, @syl? What do you think would be the path of least resistance to integrate both functionality @riking?

7개의 좋아요

Unfortunately, the “Page Publishing” feature doesn’t meet my needs. For me to use it, I would need published pages:

  1. to be displayed within the normal Discourse layout, i.e. with the standard Discourse header (just like the Terms of Service and the Privacy Policy), and
  2. to be rendered like normal (decorated) topics, i.e. supporting bbcode and plugins.
15개의 좋아요

In the meantime I used the default Discourse customization facility:

  1. Identify the added element, e.g., with a published-page-footer-links CSS class.
  2. Customize CSS to hide this element by default and show it only for published pages
  3. Add the element in the Footer space

2. In CSS, add:

/* Only show footer links on published pages */
.published-page-footer-links { display: none; }
.published-page .published-page-footer-links { display: block;}

3. in Footer, add:

<nav class="published-page-footer-links">
Hi there! This is the footer for published pages!
</nav>
8개의 좋아요