2007-12-27

[joomla] components-LxMenu 試用

點圖放大可以看到LxMenu的功能




試用了幾天LxMenu,感覺還不賴!
所以我打算把我安裝和試用的過程寫下來,以免過兩天又忘了...

1. download lxmenu115

2. 在本機解壓縮之後,FTP上傳到這邊
/administrator/components/com_installer/component

3. 上傳之後,我有先把
/administrator/components/com_installer/component/com_lxmenu115
這個檔案夾的properties/CHMOD改成777,點選FTP上面的這個folder,按右鍵,最下面的選項就是properties/CHMOD

4. 如果是使用免費平台,要依照前一篇寫的
找到這個檔案
\administrator\components\com_installer\component\component.class.php
然後把這兩句
if(!file_exists($this->elementDir()) && !mosMakePath($this->elementDir())) {
$this->setError( 1, $_LANG->_( 'Failed to create directory' ).' "' . $this->elementDir() . '"' );
return false;
}

if(!file_exists($this->componentAdminDir()) && !mosMakePath($this->componentAdminDir())) {
$this->setError( 1, $_LANG->_( 'Failed to create directory' ).' "' . $this->componentAdminDir() . '"' );
return false;
}

改成這樣
if(!file_exists($this->elementDir()) && !mosMakePath(substr($this->elementDir(), 0, -1))) {
$this->setError( 1, $_LANG->_( 'Failed to create directory' ).' "' . $this->elementDir() . '"' );
return false;
}

if(!file_exists($this->componentAdminDir()) && !mosMakePath(substr($this->componentAdminDir(), 0, -1))) {
$this->setError( 1, $_LANG->_( 'Failed to create directory' ).' "' . $this->componentAdminDir() . '"' );
return false;
}

5. 現在回到joomla後台,選擇installer底下的components,在Install From Directory這邊,填入lxmenu115的路徑,直接把/com_lxmenu115貼在空格裡原有路徑的最後面就可以了

6. install, 安裝成功!

現在LxMenu就會出現在components底下嚕~
接下來就依照template的設計或個人喜好來設定LxMenu,目前免費版的只能支援一組Menu,我是使用在左邊的MainMenu,submenu會向右伸展,設定好之後,底下的submenu都會跟著衍生。因為只能只用一組,所以在配色上要參考原本的template比較不會被發現呦~~

Have Fun!!



No comments:

##HIDEME##