CMS

WEB DEVELOPMENT

Kami mengembangkan aplikasi CMS.

This is default featured slide 2 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 3 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 4 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 5 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

Membuat Komponen Sendiri





Hal terpenting untuk suatu komponen di Joomla adalah memiliki file XML yang menentukan bagaimana komponen tersebut harus diintegrasikan ke dalam sang CMS. Sebagai contoh, anggaplah kita akan membuat sebuah komponen Joomla bernama “coba” yang berfungsi untuk menampilkan data user joomla. Untuk itu file XML-nya dapat dibuat seperti ini:



<?xml version="1.0" encoding="utf-8"?>
<extension type="component" version="2.5.0" method="upgrade">
 
<name>Hello World!</name>
<!-- The following elements are optional and free of formatting constraints -->
<creationDate>November 2009</creationDate>
<author>John Doe</author>
<authorEmail>john.doe@example.org</authorEmail>
<authorUrl>http://www.example.org</authorUrl>
<copyright>Copyright Info</copyright>
<license>License Info</license>
<!-- The version string is recorded in the components table -->
<version>0.0.1</version>
<!-- The description is optional and defaults to the name -->
<description>Description of the Hello World component ...</description>
 
<update> <!-- Runs on update; New in 2.5 -->
<schemas>
<schemapath type="mysql">sql/updates/mysql</schemapath>
</schemas>
</update>
 
<!-- Site Main File Copy Section -->
<!-- Note the folder attribute: This attribute describes the folder
to copy FROM in the package to install therefore files copied
in this section are copied from /site/ in the package -->
<files folder="site">
<filename>index.html</filename>
<filename>helloworld.php</filename>
</files>
 
<administration>
<!-- Administration Menu Section -->
<menu>Hello World!</menu>
<!-- Administration Main File Copy Section -->
<!-- Note the folder attribute: This attribute describes the folder
to copy FROM in the package to install therefore files copied
in this section are copied from /admin/ in the package -->
<files folder="admin">
<!-- Admin Main File Copy Section -->
<filename>index.html</filename>
<filename>helloworld.php</filename>
<!-- SQL files section -->
<folder>sql</folder>
</files>
</administration>
 
</extension>

Share:

Joomla Platform




Joomla Platform
adalah suatu kerangka kerja pengembangan perangkat lunak untuk development aplikasi web. Website ini mendokumentasikan API Joomla dan sebagainya namun tidak menyertakan kode dari Joomla Content Management System (CMS).

Share:

Install Joomla

Install Joomla
Untuk menginstal versi Joomla! silakan gunakan  tautan di bawah untuk menavigasi ke petunjuk instalasi yang sesuai dengan  versi tertentu. ......klik disini

Component, Module dan Plugin
Untuk mendapatkan Extention / Tambahan fasilitas pada joomla...... klik disini

Install Component, Module dan Plugin
Adapun cara menginstall extention / fasilitas tambahan joomla ....Klik disini
Share:

Membuat Module Sendiri

Buat sebuah file php dengan nama mod_populer.php dalam direktori mod_populer dan tuliskan script dibawah ini didalam file tersebut.
<?/*ini untuk menyembunyikan akses langsung ke file ini melalui browser*/defined( '_JEXEC' ) or die( 'Restricted access' );/*mengambil data base conten*/$db =& JFactory::getDBO();$query = 'SELECT a.hits, a.id, a.sectionid, a.title, a.created, u.name'. ' FROM #__content AS a'. ' LEFT JOIN #__users AS u ON u.id=a.created_by'. ' WHERE a.state <> -2'. ' ORDER BY hits DESC';/*menentukan limit atau jummlah yang akan di tampilkan*/$db->setQuery( $query, 0, 5 );$rows = $db->loadObjectList();?><!-- menampilkan list artikel - artikel dalam bentuk list --><table class="adminlist"><?phpforeach ($rows as $row){    $link = 'index.php?option=com_content&amp;task=view=article&id='. $row->id;    ?>    <tr>        <td>            <ul>            <li><a href="<?php echo $link; ?>"><?php echo htmlspecialchars($row->title, ENT_QUOTES, 'UTF-8');?></a>            </li>            </ul>        </td>    </tr>    <?php}?></table>
Berikut Penjelasan script di atas 
defined( '_JEXEC' ) or die( 'Restricted access' );
Ini merupakan sintak untuk menghindari akses dari browser
$db =& JFactory::getDBO();$query = 'SELECT a.hits, a.id, a.sectionid, a.title, a.created, u.name'. ' FROM #__content AS a'. ' LEFT JOIN #__users AS u ON u.id=a.created_by'. ' WHERE a.state <> -2'. ' ORDER BY hits DESC';
ini merupakan Sintak untuk memilih database conten pada database joomla. 
$db->setQuery( $query, 0, 5 );$rows = $db->loadObjectList();
Disini kita menentukan limit atau jumlah list yang akan ditampilkan. Angka 5 diatas saya buat agar di list ditampilkan lima artikel. Bisa diganti sesuai keinginan Anda.
<?phpforeach ($rows as $row){$link = 'index.php?option=com_content&amp;task=view=article&id='. $row->id;?><tr><td><ul><li><a href="<?php echo $link; ?>"><?php echo htmlspecialchars($row->title, ENT_QUOTES, 'UTF-8');?></a></li></ul></td></tr><?php}?>
Ini untuk menampilikan list Judul artikel terpopuler. Kita lihat nilai variabel $link adalah
$link=’ index.php?option=com_content&amp;task=view=article&id='. $row->id; 

ini membuat link ke artikel yang ditampilkan. Dan pada
 <a href="<?php echo $link; ?>"><?php echo htmlspecialchars($row->title, ENT_QUOTES, 'UTF-8');?></a> 
difungsikan untuk menampilkan judul – judul artikel yang akan ditampilkan. 
Nah sekarang kita buat pula file Instalasinya buat sebuah file dengan format XML masih dalam folder mod_populer. Lalu namai file tersebut dengan sebutan module_populer.xml
Dan tuliskan Sintak dibawah dalam file tersebut

<?xml version="1.0" encoding="utf-8"?><install type="module">    <name>Artikel Populer</name>    <author>Rojiyan Ar</author>    <creationDate>Agustus 2010</creationDate>    <copyright>Copyright (C) 2010 call-69.blogspot.com</copyright>    <license>tak punya lisensi he he he</license>    <authorEmail>arx131@gmail.com</authorEmail>    <authorUrl>call-69.blogspot.com</authorUrl>    <version>hana versi</version>    <description>Peu Galak kah?</description>    <files>        <filename module="mod_populer">mod_populer.php</filename>    </files>    <params>        <param name="cache" type="list" default="0" label="Caching" description="Select whether to cache the content of this module">            <option value="0">Tidak pernah</option>          </param>    </params></install>
Penjelasan.
<?xml version="1.0" encoding="utf-8"?> menunjukkan file XML


Share:

Good News

Powered by Blogger.