Joomla Module Development - config
I've been searching around for answers and couldn't find any.. Probably because I might have phrased it wrongly..
This is with regards to module development on either Joomla 1.5 or 1.6
Currently, I notice that the configs/params are declared inside mo开发者_运维百科dulename.xml
Is there a xml tag that will display a "browse" button, where it will allow the admin to browse for a specific file under a folder ?
Really appreciate with any help received :)
If you just want the admin to be able to pick a file that is already on the server, this can be done in both Joomla 1.5 and 1.6 with the Filelist parameter. You determine which folder the list is generated from and the user simply selects the file from that list.
http://docs.joomla.org/Filelist_parameter_type
So far, I managed doing this by making a custom parameter type by extending the JElement class.
I managed to insert the upload button. However, I am still figuring a way to actually upload the file there itself.
This link might help you: http://docs.joomla.org/Creating_custom_template_parameter_types
Do let me know if you hit success in uploading the file.
To display a browse prompt you need in html field with type='file'. That might help your search.
精彩评论