หัวข้อ: จะสร้างตำแหน่งโมดูลจูมล่ายังไงครับ จูมล่า 2.5.7 เริ่มหัวข้อโดย: nt54 ที่ 08 ตุลาคม 2012, 18:21:58 ในเทมเพลตฟรี บางทีเขาให้ตำแหน่งโมดูลมา แต่ที่นี้เราอยากจะสร้างตำแหน่งเพิ่ม
ในนี้ผมจะเพิ่มในบรรทัดไหน ในเทมเพลตฟรีของผมไม่มีตำแหน่ง content-main ผมจะส้รางเพิ่มผมได้ทำแบบในนี้ครับ แต่ก็ ยังไม่รู้ว่าวางถูกบรรทัดไหม <positions> <position>left</position> <position>right</position> <position>top</position> <position>bottom</position> <position>content-main</position> <position>inset</position> <position>banner</position> <position>header</position> <position>footer</position> <position>newsflash</position> <position>legals</position> <position>pathway</position> <position>breadcrumb</position> <position>user1</position> <position>user2</position> <position>user3</position> <position>user4</position> <position>user5</position> <position>user6</position> <position>user7</position> <position>user8</position> <position>user9</position> <position>advert1</position> <position>advert2</position> <position>advert3</position> <position>debug</position> <position>syndicate</position> </positions> และเมื่อเพิ่มในนี้แล้วต้องไปเพิ่มใน index.php ใช่ไหมครับ ด้วยโค้ต <jdoc:include type="modules" name="content-main" /> แต่ที่นี้ผม ก็ไม่รุ้ว่าจะวางไว้บรรทัดไหนเหมือนกัน ใน index.php ใน index.php ผม มาแบบนี้ครับ <?php /* * ------------------------------------------------------------------------ * JA T3 Blank template for joomla 1.7 * ------------------------------------------------------------------------ * Copyright (C) 2004-2011 JoomlArt.com. All Rights Reserved. * @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html * Author: JoomlArt.com * Websites: http://www.joomlart.com - http://www.joomlancers.com . * ------------------------------------------------------------------------ */ if (class_exists('T3Template')) { $tmpl = T3Template::getInstance(); $tmpl->setTemplate($this); $tmpl->render(); return; } else { //Need to install or enable JAT3 Plugin echo JText::_('MISSING_JAT3_FRAMEWORK_PLUGIN'); ผมจะวาง <jdoc:include type="modules" name="content-main" /> ตรงบรรทัดไหน ใน index.php :wanwan009: หัวข้อ: Re: จะสร้างตำแหน่งโมดูลจูมล่ายังไงครับ จูมล่า 2.5.7 เริ่มหัวข้อโดย: nt54 ที่ 09 ตุลาคม 2012, 21:42:16 :wanwan044: :wanwan044: กำ คือเงียบแท้ครับ ช่วยหน่อยครับ :-X
หัวข้อ: Re: จะสร้างตำแหน่งโมดูลจูมล่ายังไงครับ จูมล่า 2.5.7 เริ่มหัวข้อโดย: meawnoi ที่ 15 ตุลาคม 2012, 00:26:26 การจะวางโค้ด Module ใน index.php ต้องขึ้นอยู่กับตำแหน่งที่คุณต้องการให้โชว์ Module "content-main" ของคุณไว้ตรงไหนของ layout หน้าเว็บครับ ส่วนใหญ่ก็เกาะ DIV tag ไว้ครับ
ส่วนเท่าที่ดูจากไฟล์ index.php ของคุณเห็นว่าเป็นของ T3 Framework ไม่ลองศึกษา Framework ก่อนเหรอครับ เพราะใน Admin ของ Framework นั้นมีการจัดตำแหน่ง Module ด้วย ที่ http://wiki.joomlart.com/wiki/JA_Template_Framework/Overview หัวข้อ: Re: จะสร้างตำแหน่งโมดูลจูมล่ายังไงครับ จูมล่า 2.5.7 เริ่มหัวข้อโดย: shooter ที่ 15 ตุลาคม 2012, 00:49:11 การจะวางโค้ด Module ใน index.php ต้องขึ้นอยู่กับตำแหน่งที่คุณต้องการให้โชว์ Module "content-main" ของคุณไว้ตรงไหนของ layout หน้าเว็บครับ ส่วนใหญ่ก็เกาะ DIV tag ไว้ครับ ส่วนเท่าที่ดูจากไฟล์ index.php ของคุณเห็นว่าเป็นของ T3 Framework ไม่ลองศึกษา Framework ก่อนเหรอครับ เพราะใน Admin ของ Framework นั้นมีการจัดตำแหน่ง Module ด้วย ที่ [url]http://wiki.joomlart.com/wiki/JA_Template_Framework/Overview[/url] เป็นประโยชน์มากครับ |