# كيف تستخرج البيانات من قاعدة البيانات (DB) لمكونات الثيم الخاصة بك؟

**URL:** <https://meta.discourse.org/t/how-do-you-pull-in-data-from-the-db-for-your-theme-components/143995>\
**Category:** Development\
**Created:** [12 مارس 2020، 5:00ص UTC](https://meta.discourse.org/t/how-do-you-pull-in-data-from-the-db-for-your-theme-components/143995 "2020-03-12T05:00:14Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![justin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/justin/32/157614_2.png) [@justin](https://meta.discourse.org/u/justin)\
**Post date:** [12 مارس 2020، 6:00م UTC](https://meta.discourse.org/t/how-do-you-pull-in-data-from-the-db-for-your-theme-components/143995/4 "2020-03-12T18:00:28Z")

</div>

بالطبع. عند استخدام Ajax مع نقاط النهاية المرتبطة، سيتم احترام إعدادات المستخدم الحالية.

الوصول إلى `/latest.json` سيظهر فقط أحدث المواضيع التي يمكن لهذا المستخدم رؤيتها.

قم بطلب GET من نفس المسارات مع إضافة `.json` إلى الرابط وسترى ما ستجده!

---

_[View the full topic](https://meta.discourse.org/t/how-do-you-pull-in-data-from-the-db-for-your-theme-components/143995)._
