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.
كنت أتساءل أيضًا عن هذا.
هل يمكنك إنشاء الأدوات (Widgets) التي ستستخدمها إضافات التخطيط (Layouts Plugins) في مكون السمة، أم أنه يجب إنشاء الأدوات بواسطة إضافة أيضًا؟
من المحتمل أن يعمل كلاهما، لقد قمت بإنشائها في الإضافات.
الميزة الوحيدة للقيام بالأخير هي أنه يمكنك تحديد مواقع الأدوات البرمجياً في plugin.rb دون الحاجة إلى استخدام لوحة الإدارة.
نعم، يمكنك ذلك!
يتوفر واجهة من جانب الخادم وواجهة من جانب العميل لإضافة الأدوات.
استورد هذه الدالة
import { addCustomWidget } from 'discourse/plugins/discourse-layouts/discourse/widgets/sidebar';
ثم استخدمها بهذه الطريقة في المُهيئ (initializer)
addCustomWidget({
name: <اسم الأداة>,
position: <الجانب الذي تريد ظهورها فيه>,
order: <الترتيب النسبي مقارنة بالأدوات الأخرى على نفس الجانب>
})
تأكد أيضًا من تمكينها، إما على مستوى الموقع (في إعدادات الموقع) أو لفئة محددة (في إعدادات الفئة).
هل لديك أي فكرة عما إذا كان يجب تغيير CSS الخاص بهذا الأمر مؤخرًا؟ قمت بتحديثه إلى الإصدار الأحدث ولا يعمل CSS بعد الآن. لا أزال أرى استخدام .nav-container و .locations-map عند فحص العناصر من المتصفح.
تحياتي.
لم يتغير شيء في الإضافة، ولكن قد تكون تنسيقات CSS الخاصة بـ Discourse قد تغيرت.
هذا هو خريطة قائمة المواضيع، أليس كذلك؟ جرب
#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.