Jump to content


Set_relation dropdown showing image

set_relation image dropdown

  • Please log in to reply
4 replies to this topic

#1 nullart

nullart

    Newbie

  • Members
  • Pip
  • 6 posts

Posted 08 August 2013 - 02:43 AM

How can I show an image in set_relation dropdown?

 

Greatly appreciate your solution guys!

 

Cheers!



#2 davidoster

davidoster

    Grocery CRUD Ninja

  • Advanced Member
  • PipPipPip
  • 1,068 posts
  • LocationAthens, Greece

Posted 08 August 2013 - 06:16 AM

Hello. You mean on the dropdown itself on the list that shows on a per item basis?

E.g. 

<img src=''></img> Item1

<img src=''></img> Item2

Hmmmm. This is interesting!

We need to check on this...


____________________________________________________________

 

rtfm_small.jpg---!!!Please read these guidelines before asking to the forums!!!---

____________________________________________________________

 

David Oster aka George Pasparakis,
http://odphotography.com
http://eletter.gr


#3 davidoster

davidoster

    Grocery CRUD Ninja

  • Advanced Member
  • PipPipPip
  • 1,068 posts
  • LocationAthens, Greece

Posted 08 August 2013 - 06:18 AM

Well I think the set_relation function won't help you with this!

I believe you need to make your own set_relation by extending the library or make your own model and generate the dropdown yourself programmaticaly along with some js magic.


____________________________________________________________

 

rtfm_small.jpg---!!!Please read these guidelines before asking to the forums!!!---

____________________________________________________________

 

David Oster aka George Pasparakis,
http://odphotography.com
http://eletter.gr


#4 davidoster

davidoster

    Grocery CRUD Ninja

  • Advanced Member
  • PipPipPip
  • 1,068 posts
  • LocationAthens, Greece

Posted 08 August 2013 - 06:47 AM

Check this, it might help.

https://github.com/d...nt/chosen-image


____________________________________________________________

 

rtfm_small.jpg---!!!Please read these guidelines before asking to the forums!!!---

____________________________________________________________

 

David Oster aka George Pasparakis,
http://odphotography.com
http://eletter.gr


#5 nullart

nullart

    Newbie

  • Members
  • Pip
  • 6 posts

Posted 12 August 2013 - 07:46 AM

Thanks for the feedback davidoster. I ended up using callback_field instead. Then manually loading a query inside the callback.

 

For the front end I used this plugin (Im still open to suggestion for a similar type of plugin): http://egg.liam-galv...o_imagedropdown

 

The idea is create a link to the media table, rather than using field upload.

 

Hope this can be implemented GC.

 

Cheers!







Also tagged with one or more of these keywords: set_relation, image, dropdown

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users