Demo

討論

保持飢餓,保持愚笨 (Stay hungry, stay foolish)。 史蒂夫·賈伯斯

公告

本網站已取消討論區的討論方式,如果您有問題請至LINE群行動條碼圖片網址,或Facebook社團

Joomla! 1.5的程式開發更改

More
2006-05-05 11:56 #2298 來自 Eddy
Eddy created the topic: Joomla! 1.5的程式開發更改
To share information’s about the necessary changes I aim to write down my experiences here. I hope this is ok and prevents other developers from some research work.


First install

I have installed my 1.0.7 version and the first impression was good. No errors!

Custom Toolbar Buttons (artf3368)

In the Backend my custom Toolbar-Button isn’t displayed. The cause is a bug in mosAdminMenus see artf3368 for more information’s.

Usage of mosConfig global variables

Example for a change:

form
global $mosConfig_live_site;
echo $mosConfig_live_site;

to
global $mainframe;
$live_site = $mainframe(‘live_site’);
echo $live_site;


Use an Editor in your extension.


The procedure has changed.

Old style (Backend and Frontend)
getEditorContents( 'editor1', 'text' ) ;

…
// parameters : areaname, content, hidden field, width, height, rows, cols
editorArea( 'editor1', $row->text , 'text', 400, 200, '50', '10' ) ;


New style (Backend and Frontend)
$editor =& JEditor::getInstance(); echo $editor->getEditorContents( 'editor1', 'text' ) ; …. // parameters : areaname, content, hidden field, width, height, rows, cols $editor =& JEditor::getInstance(); echo $editor->getEditor( 'editor1',[code]$editor =& JEditor::getInstance();
echo $editor->getEditorContents( 'editor1', 'text' ) ;

….

// parameters : areaname, content, hidden field, width, height, rows, cols
$editor =& JEditor::getInstance();
echo $editor->getEditor( 'editor1',

知之者不如好之者,好之者不如樂之者

Please 登入 to join the conversation.