ในเทมเพลตฟรี บางทีเขาให้ตำแหน่งโมดูลมา แต่ที่นี้เราอยากจะสร้างตำแหน่งเพิ่ม
ในนี้ผมจะเพิ่มในบรรทัดไหน ในเทมเพลตฟรีของผมไม่มีตำแหน่ง 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