KamoCRM

Re-render templates client-side with real data in email preview

Fixkamo-internal
ส่งแล้ว
18 มีนาคม 2569 เวลา 19:26 UTC
ผู้เขียน
kamo
ตั้งค่า
50fc874

The preview was showing placeholder text ({{member.firstName}} etc.) because it used the pre-rendered placeholder HTML from the backend. Now the MessageTool: - Fetches the template config from backend and maps it to SignatureConfig - Fetches live member profile + org data via useSignatureData hook - Resolves actual image URLs via useImageResolver hook - Re-renders header and signature HTML client-side using the template render functions with real member/org data - Shows accurate preview with actual names, emails, logos, and styling

เปลี่ยนแปลงทั้งหมด

เหมือนที่คุณเห็นการขนส่ง?

ทั้งหมดของมันมาถึง ในที่ทํางานของคุณเอง เริ่มที่แผนฟรี และอ่านหน้านี้อีกครั้งในเดือน.

เริ่ม เป็น อิสระ ตลอด ไปแสดงพริ้นซ์