3

i am working on k2 example plugin, i want to add image selector field in k2 category section, i have already created html contents and text fields using the same and is working , but i don't know that we write as type for XML field. plz help me..

1 Answer 1

0

To create a image selector which uses Joomla's built-in Media Manager, you can use the following form field type in your XML:

<field name="myimage" type="media" directory="stories" />

For more information on the media type form field, please read the Joomla documentation:

http://docs.joomla.org/Media_form_field_type

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.