Page 1 of 1

usage of buttons and modal dialogs

Posted: Tue Oct 02, 2007 7:38 pm
by ghostrifle
Hi there,

I'm not familiar yet with the joomla api resources.. so I don't quite understand how to create a jbutton.. for example opening a modal window.

The way I create a calendar is clear to me:

Code: Select all

<?php echo JHTML::_( 'calendar',$this->rl_ad->valid_to,'valid_to','valid_to'); ?>


but.... how can I create now a button using the joomla api.

Thanx in advance !

Bye, Alex

Re: usage of buttons and modal dialogs

Posted: Wed Oct 03, 2007 9:19 am
by ghostrifle
Well,

I think I got it now how tu create a popup button:

Code: Select all

jimport('joomla.html.toolbar.button.popup');

$popupbutton = new JButtonPopup();
echo $popupbutton->fetchButton( $type='Popup', $name = 'some-popup-button', $text = 'hello', $url = 'http://www.some-link.de', $width=640, $height=480, $top=0, $left=0 );


... but... when I call a joomla speficic url... the whole page gets rendered... so.. could anyone give me a small example how I could use modal dialogs using joomla's mvc scheme ?

bye, alex