- Add EmDash CMS integration with SQLite and local storage - Add blog collection (seed/seed.json) with 3 sample posts - Add /บทความ list page and /บทความ/[slug] detail page - Add blog section to homepage - Fix reserved field slugs (slug, published_at removed from fields) - Fix date field mapping (publishedAt camelCase) - Fix featured image URL for admin-uploaded images (meta.storageKey) - Standardize all product page hero sections - Update navigation with 'บทความ' link - Configure Google OAuth provider
138 lines
8.3 KiB
JSON
138 lines
8.3 KiB
JSON
{
|
|
"$schema": "https://emdashcms.com/seed.schema.json",
|
|
"version": "1",
|
|
"meta": {
|
|
"name": "ดีล พลัส เทค",
|
|
"description": "ระบบน้ำคุณภาพสูง ราคาโรงงาน",
|
|
"author": "ดีล พลัส เทค"
|
|
},
|
|
"settings": {
|
|
"title": "ดีล พลัส เทค",
|
|
"tagline": "ระบบน้ำคุณภาพสูง ราคาโรงงาน"
|
|
},
|
|
"collections": [
|
|
{
|
|
"slug": "blog",
|
|
"label": "บทความ",
|
|
"labelSingular": "บทความ",
|
|
"description": "บทความและข่าวสาร",
|
|
"supports": ["drafts", "revisions", "search"],
|
|
"fields": [
|
|
{ "slug": "title", "label": "หัวข้อ", "type": "string", "required": true, "searchable": true },
|
|
{ "slug": "excerpt", "label": "คำอธิบายสั้น", "type": "text", "required": true, "searchable": true },
|
|
{ "slug": "body", "label": "เนื้อหา", "type": "portableText", "required": true, "searchable": true },
|
|
{ "slug": "featured_image", "label": "รูปภาพหลัก", "type": "image" },
|
|
{ "slug": "tags", "label": "แท็ก", "type": "string", "searchable": true }
|
|
]
|
|
}
|
|
],
|
|
"menus": [
|
|
{
|
|
"name": "primary",
|
|
"label": "เมนูหลัก",
|
|
"items": [
|
|
{ "type": "custom", "label": "หน้าแรก", "url": "/" },
|
|
{ "type": "custom", "label": "สินค้าทั้งหมด", "url": "/all-products" },
|
|
{ "type": "custom", "label": "บทความ", "url": "/บทความ" },
|
|
{ "type": "custom", "label": "เกี่ยวกับเรา", "url": "/about-us" },
|
|
{ "type": "custom", "label": "ติดต่อเรา", "url": "/contact-us" }
|
|
]
|
|
}
|
|
],
|
|
"content": {
|
|
"blog": [
|
|
{
|
|
"id": "welcome-post",
|
|
"slug": "ยินดีต้อนรับ",
|
|
"status": "published",
|
|
"data": {
|
|
"title": "ยินดีต้อนรับสู่บล็อกดีล พลัส เทค",
|
|
"excerpt": "บทความแรกของดีล พลัส เทค พบกับความรู้และข้อมูลที่เป็นประโยชน์เกี่ยวกับระบบน้ำ ท่อ และอุปกรณ์ต่างๆ",
|
|
"featured_image": { "src": "/images/logo.png", "alt": "ดีล พลัส เทค" },
|
|
"body": [
|
|
{
|
|
"_type": "block",
|
|
"style": "normal",
|
|
"children": [
|
|
{ "_type": "span", "text": "ยินดีต้อนรับสู่บล็อกของดีล พลัส เทค! เราจะนำเสนอความรู้และข้อมูลที่เป็นประโยชน์เกี่ยวกับระบบน้ำ ท่อ และอุปกรณ์ต่างๆ ให้กับคุณ" }
|
|
]
|
|
},
|
|
{
|
|
"_type": "block",
|
|
"style": "normal",
|
|
"children": [
|
|
{ "_type": "span", "text": "ติดตามบทความใหม่ๆ ได้ที่นี่ หรือแวะมาพูดคุยกันที่ Line: @JPPSELECTION" }
|
|
]
|
|
}
|
|
],
|
|
"published_at": "2025-05-25T00:00:00Z",
|
|
"tags": "ข่าวสาร"
|
|
}
|
|
},
|
|
{
|
|
"id": "pipe-knowledge",
|
|
"slug": "ความรู้เรื่องท่อ-ppr",
|
|
"status": "published",
|
|
"data": {
|
|
"title": "ความรู้เกี่ยวกับท่อ PPR สำหรับระบบน้ำ",
|
|
"excerpt": "ท่อ PPR เป็นวัสดุที่นิยมใช้ในระบบประปาและการเดินท่อน้ำร้อน-น้ำเย็น เนื่องจากมีคุณสมบัติเด่นหลายประการ",
|
|
"featured_image": { "src": "/images/hdpe001-page1.jpg", "alt": "ท่อ PPR" },
|
|
"body": [
|
|
{
|
|
"_type": "block",
|
|
"style": "normal",
|
|
"children": [
|
|
{ "_type": "span", "text": "ท่อ PPR (Polypropylene Random Copolymer) เป็นท่อพลาสติกชนิดหนึ่งที่ได้รับความนิยมอย่างสูงในระบบประปา ท่อน้ำร้อน-น้ำเย็น และระบบทำความร้อนใต้พื้น เนื่องจากมีความทนทานต่อความร้อนและสารเคมีได้ดี" }
|
|
]
|
|
},
|
|
{
|
|
"_type": "block",
|
|
"style": "normal",
|
|
"children": [
|
|
{ "_type": "span", "text": "ท่อ PPR มีอายุการใช้งานยาวนานกว่า 50 ปี สามารถทนอุณหภูมิได้สูงถึง 95°C และทนแรงดันได้ดี นอกจากนี้ยังมีน้ำหนักเบา ติดตั้งง่าย และไม่เป็นสนิม ทำให้เป็นทางเลือกที่ดีสำหรับระบบท่อ Modern Plumbing." }
|
|
]
|
|
}
|
|
],
|
|
"published_at": "2025-05-24T00:00:00Z",
|
|
"tags": "ท่อ-ppr"
|
|
}
|
|
},
|
|
{
|
|
"id": "valve-guide",
|
|
"slug": "ประเภทของวาล์ว",
|
|
"status": "published",
|
|
"data": {
|
|
"title": "ประเภทของวาล์วที่ใช้ในระบบน้ำ",
|
|
"excerpt": "วาล์วเป็นอุปกรณ์สำคัญในระบบท่อที่ใช้ควบคุมการไหลของน้ำ เลือกใช้วาล์วให้ถูกประเภทช่วยให้ระบบทำงานได้อย่างมีประสิทธิภาพ",
|
|
"featured_image": { "src": "/images/valve-In01.jpg", "alt": "วาล์วน้ำ" },
|
|
"body": [
|
|
{
|
|
"_type": "block",
|
|
"style": "normal",
|
|
"children": [
|
|
{ "_type": "span", "text": "วาล์ว (Valve) เป็นอุปกรณ์ควบคุมการไหลของของเหลวและก๊าซในระบบท่อ มีหลายประเภทตามลักษณะการใช้งาน วาล์วแต่ละประเภทมีข้อดีและข้อเสียแตกต่างกัน" }
|
|
]
|
|
},
|
|
{
|
|
"_type": "block",
|
|
"style": "normal",
|
|
"children": [
|
|
{ "_type": "span", "text": "วาล์วประตู (Gate Valve) ใช้นิ้วเปิด-ปิดการไหลแบบเต็มที่ วาล์วปีกผีเสื้อ (Butterfly Valve) เหมาะกับระบบขนาดใหญ่ที่ต้องการควบคุมการไหลอย่างรวดเร็ว และวาล์วกันกลับ (Check Valve) ป้องกันน้ำไหลย้อนกลับในระบบ." }
|
|
]
|
|
},
|
|
{
|
|
"_type": "block",
|
|
"style": "normal",
|
|
"children": [
|
|
{ "_type": "span", "text": "ที่ดีล พลัส เทค เรามีวาล์วคุณภาพสูงให้เลือกหลากหลายประเภท พร้อมให้คำปรึกษาในการเลือกใช้วาล์วให้เหมาะสมกับระบบของคุณ" }
|
|
]
|
|
}
|
|
],
|
|
"published_at": "2025-05-23T00:00:00Z",
|
|
"tags": "วาล์ว"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|