Example Plugin: Custom Activity Summary Template

Hey everyone,

I have created an example plugin to override default Activity Summary (digest) template:

https://github.com/muhlisbc/discourse-custom-activity-summary-template

Screenshot:

The main purpose of this plugin is to show how to override default .erb templates on Discourse.
I hope this helpful for someone.

26개의 좋아요

@mbcahyono

예제 플러그인을 공유해 주셔서 감사합니다. 비슷한 작업을 시도하고 있는데, 제 플러그인 내의 파일로 /app/views/embed/comments.html.erb 파일을 대체/오버라이드해야 합니다.

제 저장소는 다음과 같습니다:

https://github.com/OptDev/optuma-discourse-custom-embed

왜 작동하지 않는지 모르겠습니다. EmbedController가 사용해야 할 올바른 클래스라고 생각했지만, 분명히 잘못된 것 같습니다. 어떤 조언을 주실 수 있을까요?

1개의 좋아요

@mbcahyono 드디어 성공했어요. 도움 주셔서 감사합니다.

1개의 좋아요

위 저장소는 더 이상 사용할 수 없습니다.
그것에서 배울 수 있었으면 좋았을 텐데 아쉬워요.

1개의 좋아요

@thoka 저 저장소였는데, GitHub의 비공개 공간으로 옮겨졌어요.

매우 기본적인 변경 사항이었지만, 핵심 내용은 여기서 확인할 수 있습니다.

3개의 좋아요