This is an extension for developers that allows users of your application to choose images in HTML Forms with Joomla's Media Manager.
Installation:
At first import zoolJoomLibs.Base plugin:
Import mediaImageChooser class:
Then add behavior for mediaImageChooser on your page:
or, with custom blank image:
Also don't forget to add "modal" behavior:
After that you are ready to use this class:
Located in /mediaImageChooser.php (line 70)
JObject | --mediaImageChooser
Input box id.
Widget's config ('box', 'btn', 'win', 'prv')
Default html attributes for our widgets: input box('box'), button('btn'), modal window('win') and previewer('prv')
Current path to choosen media file.
Generates html for an image chooser button.
Generates html for an image preview element.
Don't execute this if you don't need a previewer.
Generates html code for an inputbox.
Generates html for a preview element.
This method outputs javascript which prepares all elements for working together.
Run this after creating all needed elements.
Generates button id.
Generates value for the "folder" com_media's parameter.
Generates preview id.
Returns type of URL absoluteness:
Documentation generated on Sun, 18 Jul 2010 22:35:39 +0300 by phpDocumentor 1.4.3