هل هناك طريقة يمكنني من خلالها استخدام محرر المكونات المدمج في واجهة مستخدم Discourse لإنشاء محتوى HTML ليظهر في منفذ المكون الإضافي (اسم منفذ المكون الإضافي : before-create-topic-button)؟
لا توضح الوثائق التي أقرأها (Using Plugin Outlet Connectors from a Theme or Plugin - Documentation / Developer Guides - Discourse Meta ) ما إذا كان هذا ممكنًا من واجهة المستخدم؟
لا أستطيع العثور في أي مكان في واجهة المستخدم لتحديد قالب مقبض جديد.. سواء في محرر السمات أو في محرر المكونات.
هل هذا غير مدعوم؟ أي مساعدة أو توجيه في الاتجاه الصحيح سيكون موضع تقدير!
لقد تغير هذا مؤخرًا جدًا ويجب عليك الآن القيام بذلك في جافاسكريبت، والتي تحتوي الآن بشكل ملائم على علامة تبويب خاصة بها.
أود أن أبدأ هنا:
Discourse uses the Ember JS Framework for its user interface. On top of Ember, Discourse provides a number of APIs to allow themes to customize the user interface. The most commonly-used API is Plugin Outlets.
These outlets are positioned throughout Discourse core, and allow themes to render Ember Components inside them. Those components are given access to some contextual information called “outlet args”.
Some outlets also “wrap” part of the core user interface, which allows themes to add the…
إعجابَين (2)
ممتاز، تمكنت من إنجاز إثبات المفهوم. شكراً لك يا سيدي!
3 إعجابات