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:

https://github.com/muhlisbc/discourse-custom-activity-summary-template/raw/master/custom-digest1.jpg

https://github.com/muhlisbc/discourse-custom-activity-summary-template/raw/master/custom-digest2.jpg

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