I’ve been doing freelance Discourse customization as my primary gig for almost a year at this point. And one of the most common questions I get is about static pages. “Can I just create a static sales page?” “Where’s a good place to put a FAQ without a discussion around it?”
You can likely argue the validity of these questions in most scenarios. The main response being “just close the topic.” But that doesn’t cut it for most. Thus, I decided to create this plugin to make it possible.
It’s pretty simple. You get a backend under Admin > Plugins to create, edit, and delete these pages as you like. It uses the same topic composer we’re used to. Once you have the page built, you can Enable it and share the link to the page wherever you like.
For a demo: LINK IS DEAD.
I should also note that styling is made easier with a class static-page in the wrapping div for the whole page. That way you can do whatever you want to the body of the page from a CSS standpoint in a theme.
조(Joe)가 요즘 플러그인을 유지 관리하고 있지 않은 것 같습니다. 다른 누군가가 PR을 생성해야 할 것 같습니다.
그럼에도 불구하고, 현재 코어에서 정적 페이지 기능을 개발 중입니다. 아직 초기 단계이지만, 사이트 설정에서 enable page publishing(페이지 게시 활성화) 설정을 활성화하여 사용해 볼 수 있습니다. 주제(topic)의 게시글 작업 메뉴를 열어 게시된 페이지를 만들 수 있습니다(… 버튼을 선택한 후 렌치 버튼을 누르세요).
전적으로 공감합니다. 이 플러그인이 주로 정적 페이지를 만드는 데 사용된다는 것을 알고 있습니다. 하지만 예를 들어, 페이지에 넣을 계산기 애플리케이션을 만들었다고 가정해 보겠습니다. 이 계산기는 사용자 입력이 필요합니다. 페이지는 여전히 정적 코드를 포함하지만, 사용자 입력에 따라 결과가 업데이트됩니다. 이 플러그인으로 이것이 가능한가요, 아니면 js를 포함한 외부 html/css 페이지를 만드는 것이 더 나은가요?
감사합니다!
정적 페이지에서 외부 스크립트(같은 도메인이 아닌 것)를 사용하는 방법을 아시나요?
항상 다음 오류가 발생합니다: Content Security Policy: The page’s settings blocked the loading of a resource at inline (“script-src”). Source: (function injectedScript() {...
일반적으로 iframe을 사용하지 않고 웹스토어 등을 임베드하는 가장 좋은 방법은 무엇인가요?
코드 예시:
이 요청을 다시 논의하고 싶습니다. 플러그인은 훌륭하지만, 해당 페이지를 공유할 때마다 기본 메타데이터만 표시됩니다. 제목, 설명, 그리고 사용자 지정 이미지를 지정할 수 있으면 좋겠습니다. 플러그인이 아직 활발하게 개발되고 있나요, 아니면 이 주제는 마켓플레이스 카테고리로 가져가는 것이 더 나은가요? 감사합니다!