Image selection using com_media in other components/modules

528 views
Skip to first unread message

Pete Jones

unread,
Mar 8, 2010, 4:55:56 AM3/8/10
to Joomla! CMS Development
In the past I've modified com_media to allow me to place a textfield
and button on a custom component, which then opens Media Manager in a
modal popup. You can then select the image and return it to the text
field (please see http://forum.joomla.org/viewtopic.php?f=476&t=280655).

Is this something that exists in J1.6 or has an equivalent? It's quite
useful.

Artyom Bisyarin

unread,
Mar 8, 2010, 5:28:44 PM3/8/10
to joomla-...@googlegroups.com
On Mon, 08 Mar 2010 11:55:56 +0200, Pete Jones
<jo...@petersencreative.com> wrote:

> In the past I've modified com_media to allow me to place a textfield
> and button on a custom component, which then opens Media Manager in a
> modal popup. You can then select the image and return it to the text
> field (please see http://forum.joomla.org/viewtopic.php?f=476&t=280655).

In J1.5 you can also use this plugin:
http://extensions.joomla.org/extensions/tools/development-tools/9353

> Is this something that exists in J1.6 or has an equivalent? It's quite
> useful.

J1.6 provides new JForm class. So functionality described by you above
will be realized as a JForm's field.

We are working on this now:
http://groups.google.com/group/joomla-dev-cms/browse_thread/thread/9a60013d76fd3569?hl=en-GB

Anthony McLin

unread,
Mar 8, 2010, 5:53:38 PM3/8/10
to joomla-...@googlegroups.com
This is fantastic functionality. I've had to hack it into one of my components before.

Is there any plans for a multi-image field? Ordering of entries? Or just single-image input.

-Anthony
--
Anthony McLin
Senior Web Developer
amc...@kaadesigngroup.com
T 310.821.1400  F 310.821.1440

KAA Design Group, Inc.
4201 Redwood Avenue, Los Angeles, CA 90066
Architecture | Landscape | Brand Experience | Interiors
www.kaadesigngroup.com

Artyom Bisyarin

unread,
Mar 8, 2010, 6:54:33 PM3/8/10
to joomla-...@googlegroups.com
On Tue, 09 Mar 2010 00:53:38 +0200, Anthony McLin
<amc...@kaadesigngroup.com> wrote:

> This is fantastic functionality. I've had to hack it into one of my
> components before.
>
> Is there any plans for a multi-image field? Ordering of entries? Or just
> single-image input.

Currently I want to prepare a good ground for all fields that receive
their values from modal windows. I think that should be a basic field
named "modal" and some other fields will inherit it (media, image, user,
article). I will describe this more thoroughly in "Patchwork: Fix up Image
Form field" thread.

Also I want to propose to rework com_media. I think it should allow to
work with all media files in the modal mode, not only with images as now.
To all: What are you think?

So there is a lot of work now, and personally I don't planning make
multi-image field. But this is a good idea and if you want you can
contribute. Just wait a bit until "modal" field will be approved.

Andrew Eddie

unread,
Mar 11, 2010, 2:29:47 AM3/11/10
to joomla-...@googlegroups.com
Yes, it's not easy (but not impossible) to get this to work in 1.5.
However, in 1.6 we should definitely make the modal image selector
available from any component (not just com_content).

Regards,
Andrew Eddie
http://www.theartofjoomla.com - the art of becoming a Joomla developer

> --
> You received this message because you are subscribed to the Google Groups "Joomla! CMS Development" group.
> To post to this group, send an email to joomla-...@googlegroups.com.
> To unsubscribe from this group, send email to joomla-dev-cm...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/joomla-dev-cms?hl=en-GB.
>
>

Pete Jones

unread,
Mar 11, 2010, 4:13:41 AM3/11/10
to Joomla! CMS Development
Excellent, it's really useful to have.

I got it working in 1.5 with a little 'tweaking', so it's nice to see
this being incorporated into 1.6.

Thanks
Pete

Reply all
Reply to author
Forward
0 new messages