Warning: Table './tossfest/watchdog' is marked as crashed and should be repaired query: INSERT INTO watchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (0, 'php', '<em>Table &amp;#039;./tossfest/cache_filter&amp;#039; is marked as crashed and should be repaired\nquery: SELECT data, created, headers, expire FROM cache_filter WHERE cid = &amp;#039;3:8ffa7359a7f6f1ebab9f6714d3327d16&amp;#039;</em> in <em>/var/www/tossfest/includes/database.mysql.inc</em> on line <em>172</em>.', 2, '', 'http://tossfest.opentle.org/node/45', '', '38.103.63.57', 1231562386) in /var/www/tossfest/includes/database.mysql.inc on line 172

Warning: Table './tossfest/watchdog' is marked as crashed and should be repaired query: INSERT INTO watchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (0, 'php', '<em>Table &amp;#039;./tossfest/cache_filter&amp;#039; is marked as crashed and should be repaired\nquery: LOCK TABLES cache_filter WRITE</em> in <em>/var/www/tossfest/includes/database.mysql.inc</em> on line <em>172</em>.', 2, '', 'http://tossfest.opentle.org/node/45', '', '38.103.63.57', 1231562386) in /var/www/tossfest/includes/database.mysql.inc on line 172

Warning: Table './tossfest/watchdog' is marked as crashed and should be repaired query: INSERT INTO watchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (0, 'php', '<em>Table &amp;#039;./tossfest/cache_filter&amp;#039; is marked as crashed and should be repaired\nquery: UPDATE cache_filter SET data = &amp;#039;&amp;lt;p&amp;gt;เรามาทำความเข้าใจเกี่ยวกับ parent page, child page และ orphan page กันก่อน สมมติว่าเราต้องการเขียนหนังสือ 1 เล่ม เกี่ยวกับการใช้งาน Drupal เราต้องสร้างสารบัญก่อน สารบัญต้องประกอบด้วย&amp;lt;/p&amp;gt;\\n&amp;lt;ol&amp;gt;\\n&amp;lt;li&amp;gt;Content Management&amp;lt;/li&amp;gt;\\n&amp;lt;li&amp;gt;Site Building in /var/www/tossfest/includes/database.mysql.inc on line 172

Warning: Table './tossfest/watchdog' is marked as crashed and should be repaired query: INSERT INTO watchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (0, 'php', '<em>Table &amp;#039;./tossfest/comments&amp;#039; is marked as crashed and should be repaired\nquery: SELECT COUNT(*) FROM comments WHERE nid = 45 AND status = 0</em> in <em>/var/www/tossfest/includes/database.mysql.inc</em> on line <em>172</em>.', 2, '', 'http://tossfest.opentle.org/node/45', '', '38.103.63.57', 1231562386) in /var/www/tossfest/includes/database.mysql.inc on line 172

Warning: Table './tossfest/watchdog' is marked as crashed and should be repaired query: INSERT INTO watchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (0, 'php', '<em>Table &amp;#039;./tossfest/comments&amp;#039; is marked as crashed and should be repaired\nquery: SELECT c.cid as cid, c.pid, c.nid, c.subject, c.comment, c.format, c.timestamp, c.name, c.mail, c.homepage, u.uid, u.name AS registered_name, u.picture, u.data, c.score, c.users, c.thread, c.status FROM comments c INNER JOIN users u ON c.uid = u.uid WHERE c.nid = 45 AND c.status = 0 ORDER BY c.thread DESC LIMIT 0, 50</em> in <em>/var/www/tossfest/includes/database.mysql.inc</em> on line <em>172</em>.', 2, '', 'http://tossfest.opentle.org/node/45', '', '38.103.63.57', 1231562386) in /var/www/tossfest/includes/database.mysql.inc on line 172
เขียนหนังสือด้วย book | Thailand Open Source Software Festival

เขียนหนังสือด้วย book

  • user warning: Table './tossfest/cache_filter' is marked as crashed and should be repaired query: SELECT data, created, headers, expire FROM cache_filter WHERE cid = '3:8ffa7359a7f6f1ebab9f6714d3327d16' in /var/www/tossfest/includes/database.mysql.inc on line 172.
  • user warning: Table './tossfest/cache_filter' is marked as crashed and should be repaired query: LOCK TABLES cache_filter WRITE in /var/www/tossfest/includes/database.mysql.inc on line 172.
  • user warning: Table './tossfest/cache_filter' is marked as crashed and should be repaired query: UPDATE cache_filter SET data = '<p>เรามาทำความเข้าใจเกี่ยวกับ parent page, child page และ orphan page กันก่อน สมมติว่าเราต้องการเขียนหนังสือ 1 เล่ม เกี่ยวกับการใช้งาน Drupal เราต้องสร้างสารบัญก่อน สารบัญต้องประกอบด้วย</p>\n<ol>\n<li>Content Management</li>\n<li>Site Building</li>\n<li>Site Configuration</li>\n<li>Logs</li>\n</ol>\n<p>ในที่นี้ หน้าสารบัญคือ parent page (หน้าพ่อแม่) ส่วนหน้า content management, site building, site configuration และ Logs เป็น child page (หน้าลูก) ของหน้าสารบัญ\n<p>หน้า Content Management ต้องมีหัวข้อดังนี้</p>\n<ul>\n<li>ฺbooks</li>\n<li>comment</li>\n<li>content</li>\n<li>forum</li>\n<li>post settings </li>\n</ul>\n<p>ในที่นี้ หน้า content management เป็น parent page ส่วนหน้า books, comment, content, forum และ posting settings เป็น child page ของหน้า content management</p>\n<p>ถ้าเราลบหน้า content management ถูกลบไปจะทำให้หน้า books, comment, content, forum และ posting settings เป็น orphan page (หน้ากำพร้า) ทันที</p>\n<p>มาเริ่มกันเลยครับ เรามาสร้างหน้า สารบัญกันก่อน คลิก create content -&gt; book page<img src=\"/files/u1/create_book.png\" width=\"699\" height=\"561\" /> </p>\n<p> ใส่ &quot;สารบัญ Drupal&quot; ในช่อง title เลือก &lt;top-level&gt; ในช่อง <strong>parent :</strong> แล้วใส่ข้อความแนะนำ &quot;การใช้งาน Drupal&quot; ในช่อง Body เลือก Input format เป็น Full HTML แล้ว submit (option ของเมนุอื่นปล่อยไว้ปกติก็ได้)</p>\n<p>คลิก create content -&gt; book page อีกครั้ง ใส่ &quot;Content management&quot; ในช่อง title เลือก &quot;สารบัญ Drupal&quot; ที่เราเพิ่งสร้าง ในช่อง <strong>parent :</strong> แล้วใส่ข้อความ &quot;content management สำหรับจัดการเนื้อหาต่าง ๆ ในเว้บไซต์&quot; ในช่อง Body เลือก Input format เป็น Full HTML แล้ว submit (option ของเมนุอื่นปล่อยไว้ปกติก็ได้) กด submit</p>\n<p>เสร็จสิ้นการสร้างหน้าหนังสือ 1 หน้า ลองไปดูผลโดยคลิกที่ administer-&gt;content management-&gt;books จะแสดงรายละเอียดหนังสือที่เราสร้างขึ้นมาชื่อ &quot;สารบัญ Drupal&quot;<br /><img src=\"/files/u1/books.png\" width=\"713\" height=\"363\" /> </p>\n<p>จากนั้น คลิกที่ outline บรรทัด &quot;สารบัญ Drupal&quot;จะแสดงรายละเอียดหัวข้อย่อย ๆ ลงไปในที่นีคือ content management<img src=\"/files/u1/outline.png\" width=\"768\" height=\"208\" /></p>\n<p> เราลองคลิก delete สารบัญ Drupal ดูจากนั้น ไปที่เมนู administer-&gt;content management-&gt;books คลิกเลือกแท็บ <strong>Orphan pages </strong>จะแสดงทันทีว่าหน้า content management เป็น orphan page ทันที (เพราะเราลบหน้า สารบัญDrupal ไป)<br /><img src=\"/files/u1/orphan.png\" width=\"739\" height=\"290\" /></p>\n', created = 1231562386, expire = 1231648786, headers = '' WHERE cid = '3:8ffa7359a7f6f1ebab9f6714d3327d16' in /var/www/tossfest/includes/database.mysql.inc on line 172.
  • user warning: Table './tossfest/comments' is marked as crashed and should be repaired query: SELECT COUNT(*) FROM comments WHERE nid = 45 AND status = 0 in /var/www/tossfest/includes/database.mysql.inc on line 172.
  • user warning: Table './tossfest/comments' is marked as crashed and should be repaired query: SELECT c.cid as cid, c.pid, c.nid, c.subject, c.comment, c.format, c.timestamp, c.name, c.mail, c.homepage, u.uid, u.name AS registered_name, u.picture, u.data, c.score, c.users, c.thread, c.status FROM comments c INNER JOIN users u ON c.uid = u.uid WHERE c.nid = 45 AND c.status = 0 ORDER BY c.thread DESC LIMIT 0, 50 in /var/www/tossfest/includes/database.mysql.inc on line 172.

เรามาทำความเข้าใจเกี่ยวกับ parent page, child page และ orphan page กันก่อน สมมติว่าเราต้องการเขียนหนังสือ 1 เล่ม เกี่ยวกับการใช้งาน Drupal เราต้องสร้างสารบัญก่อน สารบัญต้องประกอบด้วย

  1. Content Management
  2. Site Building
  3. Site Configuration
  4. Logs

ในที่นี้ หน้าสารบัญคือ parent page (หน้าพ่อแม่) ส่วนหน้า content management, site building, site configuration และ Logs เป็น child page (หน้าลูก) ของหน้าสารบัญ

หน้า Content Management ต้องมีหัวข้อดังนี้

  • ฺbooks
  • comment
  • content
  • forum
  • post settings

ในที่นี้ หน้า content management เป็น parent page ส่วนหน้า books, comment, content, forum และ posting settings เป็น child page ของหน้า content management

ถ้าเราลบหน้า content management ถูกลบไปจะทำให้หน้า books, comment, content, forum และ posting settings เป็น orphan page (หน้ากำพร้า) ทันที

มาเริ่มกันเลยครับ เรามาสร้างหน้า สารบัญกันก่อน คลิก create content -> book page

ใส่ "สารบัญ Drupal" ในช่อง title เลือก <top-level> ในช่อง parent : แล้วใส่ข้อความแนะนำ "การใช้งาน Drupal" ในช่อง Body เลือก Input format เป็น Full HTML แล้ว submit (option ของเมนุอื่นปล่อยไว้ปกติก็ได้)

คลิก create content -> book page อีกครั้ง ใส่ "Content management" ในช่อง title เลือก "สารบัญ Drupal" ที่เราเพิ่งสร้าง ในช่อง parent : แล้วใส่ข้อความ "content management สำหรับจัดการเนื้อหาต่าง ๆ ในเว้บไซต์" ในช่อง Body เลือก Input format เป็น Full HTML แล้ว submit (option ของเมนุอื่นปล่อยไว้ปกติก็ได้) กด submit

เสร็จสิ้นการสร้างหน้าหนังสือ 1 หน้า ลองไปดูผลโดยคลิกที่ administer->content management->books จะแสดงรายละเอียดหนังสือที่เราสร้างขึ้นมาชื่อ "สารบัญ Drupal"

จากนั้น คลิกที่ outline บรรทัด "สารบัญ Drupal"จะแสดงรายละเอียดหัวข้อย่อย ๆ ลงไปในที่นีคือ content management

เราลองคลิก delete สารบัญ Drupal ดูจากนั้น ไปที่เมนู administer->content management->books คลิกเลือกแท็บ Orphan pages จะแสดงทันทีว่าหน้า content management เป็น orphan page ทันที (เพราะเราลบหน้า สารบัญDrupal ไป)


Warning: Table './tossfest/watchdog' is marked as crashed and should be repaired query: INSERT INTO watchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (0, 'php', '<em>Table &amp;#039;./tossfest/accesslog&amp;#039; is marked as crashed and should be repaired\nquery: INSERT INTO accesslog (title, path, url, hostname, uid, sid, timer, timestamp) values(&amp;#039;เขียนหนังสือด้วย book&amp;#039;, &amp;#039;node/45&amp;#039;, &amp;#039;&amp;#039;, &amp;#039;38.103.63.57&amp;#039;, 0, &amp;#039;d132710a14feb532fb4f4a7696980c7e&amp;#039;, 413, 1231562386)</em> in <em>/var/www/tossfest/includes/database.mysql.inc</em> on line <em>172</em>.', 2, '', 'http://tossfest.opentle.org/node/45', '', '38.103.63.57', 1231562386) in /var/www/tossfest/includes/database.mysql.inc on line 172

Warning: Table './tossfest/watchdog' is marked as crashed and should be repaired query: INSERT INTO watchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (0, 'php', '<em>Table &amp;#039;./tossfest/sessions&amp;#039; is marked as crashed and should be repaired\nquery: SELECT sid FROM sessions WHERE sid = &amp;#039;d132710a14feb532fb4f4a7696980c7e&amp;#039;</em> in <em>/var/www/tossfest/includes/database.mysql.inc</em> on line <em>172</em>.', 2, '', 'http://tossfest.opentle.org/node/45', '', '38.103.63.57', 1231562386) in /var/www/tossfest/includes/database.mysql.inc on line 172

Warning: Table './tossfest/watchdog' is marked as crashed and should be repaired query: INSERT INTO watchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (0, 'php', '<em>Table &amp;#039;./tossfest/sessions&amp;#039; is marked as crashed and should be repaired\nquery: INSERT INTO sessions (sid, uid, cache, hostname, session, timestamp) VALUES (&amp;#039;d132710a14feb532fb4f4a7696980c7e&amp;#039;, 0, 0, &amp;#039;38.103.63.57&amp;#039;, &amp;#039;messages|a:1:{s:5:\\&amp;quot;error\\&amp;quot;;a:1:{i:0;s:445:\\&amp;quot;user warning: Table &amp;amp;#039;./tossfest/accesslog&amp;amp;#039; is marked as crashed and should be repaired\\nquery: INSERT INTO accesslog (title, path, url, hostname, uid, sid, timer, timestamp) values(&amp;amp;#039;เขียนหนังสือด้วย book&amp;amp;#039;, &amp;amp;#039;node/45&amp;amp;#039;, &amp;amp;#039;&amp;amp;#039;, &amp; in /var/www/tossfest/includes/database.mysql.inc on line 172