Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

Multiple value select from FK 28 Jul 2015 21:13 #13366

  • MorganL
  • MorganL's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 438
  • Thank you received: 53
Anyone custom coded a component to allow this?

Basically I have a film component which has a field called GENRE which links via FK to table called (wait for it) Genres.

A movie can have more than one genre so I need a multselect box with data from an FK

I know the builder itself cant do this, but has anyone successfully converted a component to allow a multiselect field?

Thanks in advance for any tips. I can think of many approaches, but one that is tried and tested and working will be awesome!
Morgan Leecy MCSE

Novell / Linux
PHP. MYSQL, Apache, node.js
Coldfusion, JQuery, HTML5
Joomla

Please Log in or Create an account to join the conversation.

Multiple value select from FK 03 Aug 2015 14:09 #13372

  • MorganL
  • MorganL's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 438
  • Thank you received: 53
Any one done this? Cook? Is this possible with the currnet framework in some way.. JSON field maybe with a bit of custom code on the front end?

I think the Joomla component docs give some examples, but would rather use the existing framework rather than have fields of different types
Morgan Leecy MCSE

Novell / Linux
PHP. MYSQL, Apache, node.js
Coldfusion, JQuery, HTML5
Joomla

Please Log in or Create an account to join the conversation.

Multiple value select from FK 04 Aug 2015 11:18 #13379

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
Better to use N:M than JSON
N:M is not ready yet, so I prefer not to provide 'official' example for not creating more confusion, but I remember some topics about that.

I am working on that feature (N:M), but it is not ready yet because I had preferred to focus on FOF before. N:M is the next coming.
Coding is now a piece of cake

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.076 seconds

The j-cook project is one of the best of its kind and it is nice that we all try to contribute in little ways to make life easy for each other.

vlemos (Forum)  

Get Started