19 ก.พ. 2558

เพิ่มตำแหน่งการติดตั้ง module ใน joomla 1.5

1. เปิดไฟล์ templateDetails.xml ที่อยู่ใน Template นั้นๆ โดยการเพิ่ม code ไปใน tag positions ดังตัวอย่างด้านล่างนี้


<positions>

    <position>breadcrumb</position>

    <position>left</position>

    <position>right</position>

    <position>top</position>

    <position>user1</position>

    <position>user2</position>

    <position>user3</position>

    <position>user4</position>

    <position>footer</position>

    <position>debug</position>

    <position>syndicate</position>

    <position>myPosition</position>

</positions>


2. แก้ไขไฟล์ index.php ของ Template โดยการเพิ่ม code ด้านล่างลงไปยังตำแหน่งที่ต้องการ


<jdoc:include type="modules" name="myPosition" />

ไม่มีความคิดเห็น:

แสดงความคิดเห็น