Any idea why the layouts work perfectly fine in one subcategory:
but not in another?
It’s the tags and specifically this line:
You can either reduce the number of tags or try this:
.topic-list-item .discourse-tags {
display: unset;
}
That will cause them to wrap, hopefully.
(NB inline-block also works but unset works even better in this case)
Thank you so much! That works.
Thanks for nice work.
but
When i tick: Enable right sidebar globally to yes or no there is no timeline on the topic. It is a bug or no ?? (im testing the material theme)
There will be another reason why you’re not seeing the timeline. Please try using the plugin by itself with other plugins and themes disabled.
My Sandbox has this plugin installed, has enable right sidebar globally turned off and you can still see topic timelines, e.g. https://discourse.angusmcleod.com.au/t/test-event-for-bug/898
Also make sure you haven’t included “topic” in the layouts sidebar right enabled setting.
So much functionality has been provided (you people are great) that it has become rather tough to understand all the options which cross depend on each other (layout vs location plugins) for a power user (but not powerful tech) like me.
But I understand that I shouldn’t bite more than I can chew. But again, can’t help myself when see something new and useful.
I agree! I’m going to be updating the first post of this plugin topic, and my other plugin topics soon with a standardised template that makes it easier to understand the functionality and how to implement it on your site.
If you have any specific use cases in mind for this plugin let me know and I can help you out.
私もこれについて疑問に思っていました。
テーマコンポーネント内で、レイアウトプラグインで使用されるウィジェットを作成することはできますか?それとも、ウィジェットもプラグイン側で作成する必要がありますか?
おそらくどちらも動作するでしょう。私はプラグイン内でそれらを作成しました。
後者を行う唯一の利点は、管理画面を使用せずに plugin.rb 内でウィジェット配置をプログラムで設定できることです。
はい、可能です!
ウィジェットを追加するためのサーバーサイドとクライアントサイドの両方のインターフェースが存在します。
この関数をインポートしてください。
import { addCustomWidget } from 'discourse/plugins/discourse-layouts/discourse/widgets/sidebar';
そして、イニシャライザー内で以下のように使用します。
addCustomWidget({
name: <ウィジェット名>,
position: <表示させたい側面>,
order: <同じ側面の他のウィジェットに対する順序>
})
また、サイト全体(サイト設定)または特定のカテゴリ(カテゴリ設定)で有効になっていることを確認してください。
最近、この CSS を変更する必要があるかどうかご存知でしょうか?最新版に更新したところ、CSS が機能しなくなりました。ブラウザで要素を検証すると、まだ .nav-container や .locations-map が使われているようですが。
よろしくお願いいたします。
プラグインに変更はありませんが、Discourse の CSS が変更された可能性があります。
これはトピック一覧のマップですよね?以下を試してみてください。
#list-area .locations-map:not(.expanded) {
...
}
ありがとうございます。しかし、うまくいきませんでした。ほぼすべての要素を追加しましたが、変化はありません:
.list-area .widget-container .nav-container .leaflet-container .locations-map:not(.expanded) {
height: 750px;
}
解決しました:!important コメントが必要です。ご支援ありがとうございます。
.nav-container .locations-map:not(.expanded) {
height: 750px !important;
}
https://babyforex.net のサイトでは正常に動作しています。ただし、トピック表示で右サイドバーを使用する場合は、DiscoTOC を使用しないでください:DiscoTOC - automatic table of contents
エラーが表示されていますか?**「‘layouts_sidebar_left_enabled’ という設定名は存在しません」**と表示され、私が設定しようとしている他の設定についても同様のエラーが発生しています。
そのエラーが発生するまでの手順について、詳しく説明していただけますか?再現可能な十分な詳細を提供してください。
最新の公式 Discourse ビルドを使用していますか?当社のプラグインは tests-passed ブランチでのみサポートされています。