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

TOPIC:

1:1 Links how to do ? 16 Apr 2012 16:39 #2025

hello,

Urgently needed response to this problem.



What steps should I take to add more fields in a FK table form?


Help me Please!!!!
The following user(s) said Thank You: edwardcox

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

Re: 1:1 Links how to do ? 16 Apr 2012 18:08 #2026

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
You deal with 2 SQL tables, so you need to interface the 2 tables files (php)

For instance :
Main table : Account (generated by Cook)
Linked table : Users (existing table)

TODO : (frame)

1. First of all, in the BUILDER
- Create your two tables (even the users table)
- Fill with all the users fields (cloned, but you can create less fields)
- In the main TABLE, create a FK to the users table (short name: 'user' for instance)
- In the LAYOUTS, instance the 1:1 joined fields (In forms, you cannot for the moment)


2. In LAYOUTS FORMS php files
- Instance your fields manually* (with JDom, it is really easy)
*using the joined name alias (_user_myfield for instance)


3. In the MODEL of the main table (account) :
- receive the POST and separate the VALUES that not concern the main table (starting with '_user_')
- deal with the store() and co. functions, calling the second table class (users : native of joomla in our case)
- manage the idkey in operations (ADD-EDIT-DELETE)


That all I can say for the moment.
I should do a tutorial for that.
Coding is now a piece of cake
The following user(s) said Thank You: VeCrea, edwardcox, devil, JoomGuy

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

Last edit: by admin.

Re: 1:1 Links how to do ? 19 Apr 2012 11:22 #2056

  • etc
  • etc's Avatar
  • Offline
  • Premium Member
  • Premium Member
  • Posts: 132
  • Thank you received: 19
Hi tiaguiar, have you succeeded? Do you have any experience to share. It makes me very interested.
Thank you

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

Re: 1:1 Links how to do ? 19 Apr 2012 11:39 #2057

And me too.
Passionate Joomla! Developer and J-Cook pro evangelist.
www.jcombuilder.com - we build great Joomla!® Components so you don't have to.

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

Re: 1:1 Links how to do ? 20 Apr 2012 06:39 #2066

  • etc
  • etc's Avatar
  • Offline
  • Premium Member
  • Premium Member
  • Posts: 132
  • Thank you received: 19
Hi Jocelyn

Please could you be so kind to write little more detailed guide about your previous 1:1 links post?
I know it is the question of finding some time for it.
I tried something but it seems I need more information to this.

thanks a lot

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

Re: 1:1 Links how to do ? 22 Sep 2012 10:51 #3844

  • JoomGuy
  • JoomGuy's Avatar
  • Offline
  • Moderator
  • Moderator
  • Joomla Enthusiast, Lover of Cooking
  • Posts: 1115
  • Thank you received: 195
+1

Hi Admin,

Please could you further explain and if possible provide example of this?

Many thanks!

Gez
Need help with your Cook/Joomla Project? . PM me to find out what I can help with. NO time wasters please!!!

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

Re: 1:1 Links how to do ? 16 Mar 2013 11:33 #6953

You should do a tut on this! It would be very helpful!

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

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

Awards for the best Joomla app. This product is gonna win an award for this amazing job. Cook Self Service is the the best application from all over the Joomla universe ! It brings Joomla to a professional level really advanced for developers. It is a real fun to develop with it. The ACL part and security checks implementation are just... so much hours saved. I can now concentrate myself more on the design part and the creative works. Thank you so much. Guys I offer you all my congratulation ! Keep up the works because Joomla is needing it to increase the quality of extensions availables on the JED. I also learned a lot because I can see how to code at the proper place and I found all my answers reading the forum.
lack_hanson (JED)
          

Get Started