diff --git a/frontend/src/admin/entities.ts b/frontend/src/admin/entities.ts index 4280ff5..05f9437 100644 --- a/frontend/src/admin/entities.ts +++ b/frontend/src/admin/entities.ts @@ -184,6 +184,19 @@ export const ENTITIES: Record = { fields: [F('label', 'برچسب'), F('key', 'کلید وضعیت', 'text', 'done یا progress', true)], defaults: { key: 'done', label: 'برچسب جدید' }, }, + 'section-headings': { + resource: 'section-headings', dataKey: 'section_headings', title: 'تیتر بخش‌ها', kind: 'collection', + titleKey: 'title', + // تیتر/توضیح بخش‌ها فقط درجا (InlineEdit) ویرایش می‌شوند — نبودِ تعریف یعنی + // ویرایش روی صفحهٔ انگلیسی به‌جای ستون‌های _en ستون فارسی را بازنویسی می‌کرد + fields: [ + F('key', 'کلید بخش', 'text', 'services / featured_projects / gallery / timeline / why_us / testimonials / team / articles', true), + F('label', 'برچسب بالای تیتر'), F('title', 'تیتر'), F('lead', 'توضیح', 'textarea'), + F('image', 'تصویر', 'image', undefined, true), + F('cta_label', 'متن دکمه'), F('cta_href', 'لینک دکمه', 'text', undefined, true), + ], + defaults: { key: '', title: '', lead: '' }, + }, seo_meta: { resource: 'seo-meta', dataKey: 'seo_meta', title: 'سئوی صفحه', kind: 'collection', titleKey: 'page_key',