إضافة واجهة مستخدم لتحرير الحقول المخصصة لكل موضوع

Heyah,

while working on the topic permalinks plugin, I realised that there is no way for the Administrator to add, configure or edit our new awesome custom-fields other than going into the Shell or Database and do it manually. Which makes it a quite hidden feature.

I’d propose to build a general-purpose modal-dialog similar to the administration interface listing all existing custom_fields and allowing them to be edited (and maybe other fields added) by administrators. Here is an example sketch for what this could look like for a topic:

I’d propose to make this accessible through the topic wrench per topic, the administrator-wrench per post, make it part of the category-edit page and add a button for it on the user-profile-admin-page.

What do you think?

7 إعجابات

I like this feature, but it gets a bit tricky.

Ideally you only show it if you actually have custom fields so the backend needs to be a bit smarter and it may add some cost to querying posts.

I am not sure if I want this for V1 though.

إعجابَين (2)

Which we could do, if we make the usage of fields (at least through the editor) something plugins half-way officially register. This would also easier allow us to learn about and warn for clashes, and if we know the fields, we can do the serialisation automatically and the plugins don’t have to do the same monkey patching all the time.

I am thinking of something similar to the settings.yml, like a custom_fields.yml, which then simply would have top level sections for the models that have custom-fields support. Something along the lines of

topic:
   permalink:
      default: ''
      client: true
   template:
     <<
      - article
      - blog-post

user:
   author_bio:
     default: ""
     client: true
  author_picture:
     default: ""
     client: true
     type: url

هل قام أي شخص بالفعل بإنشاء نوع من واجهة أمامية لتعديل الحقول المخصصة للمواضيع؟

لقد قمت بتصميم حل مخصص لأحد العملاء قبل 3 أشهر فقط (وقد فعلت ذلك عدة مرات من قبل).

تحتوي المواقع وقوائم المواضيع وعروض الأحداث على واجهات مستخدم خاصة بها.

إذا كان لديك شيء تحتاج إلى إنجازه ولديك ميزانية، فسأكون سعيدًا بالنظر فيه.

هل يمكنك توضيح المتطلبات؟