لقد جربت البحث بالفعل (مربك للغاية!) زويكس!
في الشريط الجانبي الجديد، هل هناك طريقة لتعديل (أو تعطيل) ما يظهر في القائمة المنسدلة “المجتمع” (كل شيء، منشوراتي، إلخ)؟
نحن لا نرغب حقًا في كل الأشياء الموجودة هناك وكنا نأمل أن يكون هناك زر / واجهة مستخدم سهلة لتعديل هذه الأشياء (روابط مثال للشارات أو الأسئلة الشائعة).
إعجابَين (2)
Heliosurge
(Dan DeMontmorency)
6 مارس 2023، 8:03م
2
هذا المنشور في Theme component Hide Sidebar يحتوي على كود لإخفاء المجتمع فقط.
قد يكون نقطة انطلاق
That is pretty straightforward with a bit of CSS targetting .anon:
.anon div.sidebar-section-community {
display: none;
}
If I get the chance I’ll roll that functionality into this TC.
مرر إلى الأعلى وهناك رابط يعود إلى بعض الأكواد أيضًا.
3 إعجابات
nathank
(Nathan Kershaw)
8 مارس 2023، 4:04ص
3
للأسف، لا يوجد حاليًا.
لكن @team يعمل على ذلك:
Recently, we decided to extend the level of customization for sidebar on meta. We have enabled the ability for you to create your own sidebar sections with links (using the enable custom sidebar sections setting).
How it works
To display the form, you will need to click plus button at the bottom of the sidebar.
[Add section button]
You will need to provide the title of the section and at least one valid link. A valid link contains an icon, name and correct URL within the Discourse forum (abs…
حتى يصبح هذا متاحًا على نطاق أوسع، سيتعين عليك إخفاء بعض أو كل قسم المجتمع باستخدام CSS (وهو أمر بسيط جدًا للمسؤولين) أو القيام ببعض الحيل الأكثر جنونًا كما هو موثق هنا:
We want to allow users to add a custom section of links to their sidebar.
In a first pass for this feature, we plan to build upon the existing sidebar preferences page , and allow a user to add a single custom section for these links.
We think it can work something like this:
checkbox for “Show Custom Section”.
If checked Custom Section appears above Categories Section and values must have valid Name and at least one valid Link to “Save Changes”
textbox for Name of the custom section (defaul…
إعجاب واحد (1)
Canapin
(Coin-coin le Canapin)
8 مارس 2023، 12:05م
4
لقد قيل كل شيء تقريبًا هنا بواسطة @Heliosurge و @nathank
لإضافة القليل على أي حال، إذا كنت ترغب في إخفاء عنصر، يمكنك القيام بذلك باستخدام CSS.
هذا مصدر ممتاز للبدء بهذا النوع من التعديلات: Making custom CSS changes on your site
لتلخيص، ستستخدم أدوات التطوير في متصفحك للعثور على عنصر HTML الذي تريد إخفاءه وتطبيق قاعدة CSS display: none; عليه.
إذا كنت ترغب في إعادة ترتيب بعض العناصر، فيمكن القيام بذلك أيضًا باستخدام CSS. إنه أكثر تقدمًا قليلاً، وسيعتمد على ما تريد إعادة ترتيبه والترتيب الدقيق الذي تريده.
أقدم مثالاً هنا:
You can use this CSS:
#sidebar-section-content-categories,
#sidebar-section-content-tags {
display: flex;
flex-direction: column;
li:last-child {
order: -1;
}
}
[image]
إعجابَين (2)
ماذا لو أردنا إضافة بعض العناصر أو الصفحات إلى قائمة الشريط الجانبي أو إذا أردنا إضافة المزيد من العناصر مثل بعض الصفحات المخصصة إليها، فكيف يمكننا تحقيق ذلك؟
إعجابَين (2)
nathank
(Nathan Kershaw)
15 مارس 2023، 2:35ص
6
أفضل طريقة في الوقت الحالي هي إضافة هذا الرمز إلى السمة الخاصة بك (أو إنشاء مكون سمة خاص بك) بناءً على هذا (أو المنشور الذي يليه):
Here’s another example that I hope will be helpful to someone, based heavily off the above examples. This code doesn’t add an entirely new section, but instead adds additional links to the bottom of the “More” panel in the Community section (but before the FAQ and About links in the footer). It supports FontAwesome icons (assuming they’re added in the site settings) and external links. It handles edge cases where the sidebar is closed and re-opened, and/or the Community section is collapsed and …
لقد حاولت حزم هذا في مكون سمة قابل للتكوين خاص بي بناءً على مكون روابط الهامبرغر ولكني واجهت صعوبة في الحصول على المتغيرات من قائمة إلى الرمز. أنا متأكد من أن شخصًا أذكى مني يمكنه القيام بذلك في بضع دقائق!
إعجاب واحد (1)
أفضل طريقة في الوقت الحالي هي إضافة هذا الرمز إلى السمة الخاصة بك (أو إنشاء مكون سمة خاص بك) بناءً على هذا (أو المنشور الذي أسفله):
لقد حاولت تجميع هذا في مكون سمة قابل للتكوين خاص بي بناءً على مكون روابط الهامبرغر ولكنني واجهت صعوبة في الحصول على المتغيرات من قائمة إلى الرمز. أنا متأكد من أن شخصًا أذكى مني يمكنه القيام بذلك في بضع دقائق!
شكرًا ناثان، سألعب بها في نهاية هذا الأسبوع - ملاحظة، لقد انطلقنا! Real Estate Webmasters Forum / REW Community - For Top Agents, Teams & Brokers (متحمس للحصول على الترقية الجديدة)
هل يوجد موضوع “ما الجديد” في مكان ما يتحدث عن جميع الميزات الجديدة؟ أشعر بالحرج لقول إننا كنا متأخرين عدة إصدارات، وأريد التأكد من أنني لا أفوت أي أشياء رائعة ليست على راداري.
أقدر مساعدتك يا صديقي!
إعجاب واحد (1)
nathank
(Nathan Kershaw)
15 مارس 2023، 4:05ص
8
تهانينا، وآمل أن تكون رحلتك مع Discourse مجزية للغاية! يبدو موقعك جيدًا جدًا.
أوصي بالاطلاع على release-notes وربما مشاهدتها للبقاء على اطلاع بأهم الميزات فور إصدارها.
إعجاب واحد (1)
nathank
(Nathan Kershaw)
18 مارس 2023، 4:48م
9
Morgan Carey:
أقدر مساعدتك يا رجل!
إذا قمت بالتحديث الآن، ستتمكن من إضافة قسم مخصص جديد مرئي لجميع المستخدمين لديك دون الحاجة إلى استخدام نصوص برمجية إذا كنت ترغب في ذلك:
I note that this is live (but experimental of course)! Brilliant! The OP could be updated to note this.
Also, it might be worth stating that it has the nice little globe only for @staff :
[image]
I discovered that only after I’d managed to hide it with CSS thinking that it would look silly for our regular users!
إنه يعمل مع الروابط الخارجية، ولكنه لا يعمل مع الروابط الخاصة بي (أي /my/preferences/profile ).